Struct zerovec::varzerovec::VarZeroVecOwned [−][src]
pub struct VarZeroVecOwned<T: ?Sized> { /* fields omitted */ }
Expand description
A fully-owned VarZeroVec
. This type has no lifetime but has the same
internal buffer representation of VarZeroVec
, making it cheaply convertible to
VarZeroVec
and VarZeroVecBorrowed
.
Implementations
Construct a VarZeroVecOwned from a VarZeroVecBorrowed
by cloning the internal data
Construct a VarZeroVecOwned from a list of elements
Obtain a VarZeroVecBorrowed
borrowing from the internal buffer
Obtain an iterator over VarZeroVecOwned’s elements
Get one of VarZeroVecOwned’s elements, returning None if the index is out of bounds
Get this VarZeroVecOwned
as a borrowed VarZeroVec
If you wish to repeatedly call methods on this VarZeroVecOwned
,
it is more efficient to perform this conversion first
Get a reference to the entire backing buffer of this vector
Insert an element at the end of this vector
Insert an element at index idx
Binary searches a sorted VarZeroVecOwned<T>
for the given element. FoGeneralr more information, see
the primitive function binary_search
.
Trait Implementations
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl<T: ?Sized> RefUnwindSafe for VarZeroVecOwned<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for VarZeroVecOwned<T> where
T: Send,
impl<T: ?Sized> Sync for VarZeroVecOwned<T> where
T: Sync,
impl<T: ?Sized> Unpin for VarZeroVecOwned<T>
impl<T: ?Sized> UnwindSafe for VarZeroVecOwned<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more