Struct rustc_data_structures::thin_vec::ThinVec [−][src]
Expand description
A vector type optimized for cases where this size is usually 0 (cf. SmallVec
).
The Option<Box<..>>
wrapping allows us to represent a zero sized vector with None
,
which uses only a single (null) pointer.
Tuple Fields
0: Option<Box<Vec<T>>>
Implementations
Trait Implementations
Extends a collection with the contents of an iterator. Read more
extend_one
)Extends a collection with exactly one element.
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Creates a value from an iterator. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for ThinVec<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for ThinVec<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Layout
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 8 bytes