Type Definition slas::StaticVecRef

source · []
pub type StaticVecRef<'a, T, const LEN: usize> = &'a StaticVecUnion<'a, T, LEN>;
Expand description

StaticVectorUnion is always owned when it is not found in a StaticCowVec, therefore we have this type alias to make it less confisung when dealing with references to owned vectors.

Trait Implementations

Return pointer to first element. Read more

Return mutable pointer to first element. Read more

Return a reference to self with the type of StaticVecUnion

Return a mutable reference to self with the type of StaticVecUnion. If you want to write to a StaticVec, this is the method that should be used. This method is re-implemented for StaticCowVecs, so it perserves cow behavior even when cows are borrowed as StaticVec’s. Read more

Return a cow vector containing a reference to self.

Indexing without bounds checking. Read more

Same as Self::get_unchecked but mutable. Read more

Returns a static slice spanning from index i to i+SLEN. Read more

Returns a mutable static slice spanning from index i to i+SLEN. Read more

Copies self into a StaticVecUnion.

Statically use B as a backend for self.

Example Read more