Trait SharedPtrTarget
unsafe trait SharedPtrTarget
Trait bound for types which may be used as the T inside of a
SharedPtr<T> in generic code.
This trait has no publicly callable or implementable methods. Implementing it outside of the CXX codebase is not supported.
Example
A bound T: SharedPtrTarget may be necessary when manipulating
SharedPtr in generic code.
use ;
use Display;
Writing the same generic function without a SharedPtrTarget trait bound
would not compile.
Implementors
impl SharedPtrTarget for boolimpl SharedPtrTarget for i8impl SharedPtrTarget for f64impl SharedPtrTarget for usizeimpl SharedPtrTarget for f32impl SharedPtrTarget for u64impl SharedPtrTarget for isizeimpl SharedPtrTarget for u32impl SharedPtrTarget for i64impl SharedPtrTarget for u16impl SharedPtrTarget for i32impl SharedPtrTarget for u8impl SharedPtrTarget for i16impl SharedPtrTarget for CxxString