Trait VectorElement
unsafe trait VectorElement: Sized
Trait bound for types which may be used as the T inside of a
CxxVector<T> in generic code.
This trait has no publicly callable or implementable methods. Implementing
it outside of the CXX codebase requires using explicit shim trait impls,
adding the line impl CxxVector<MyType> {} in the same cxx::bridge that
defines MyType.
Example
A bound T: VectorElement may be necessary when manipulating CxxVector
in generic code.
use ;
use Display;
Writing the same generic function without a VectorElement trait bound
would not compile.
Implementors
impl VectorElement for i32impl VectorElement for u8impl VectorElement for i16impl VectorElement for CxxStringimpl VectorElement for i8impl VectorElement for f64impl VectorElement for usizeimpl VectorElement for f32impl VectorElement for u64impl VectorElement for isizeimpl VectorElement for u32impl VectorElement for i64impl VectorElement for u16