[−][src]Struct rustc_data_structures::thin_vec::ThinVec
A vector type optimized for cases where this size is usually 0 (cf. SmallVector).
The Option<Box<..>> wrapping allows us to represent a zero sized vector with None,
which uses only a single (null) pointer.
Implementations
impl<T> ThinVec<T>[src]
Trait Implementations
impl<T: Clone> Clone for ThinVec<T>[src]
impl<T: Debug> Debug for ThinVec<T>[src]
impl<T, __D: Decoder> Decodable<__D> for ThinVec<T> where
T: Decodable<__D>, [src]
T: Decodable<__D>,
impl<T> Default for ThinVec<T>[src]
impl<T> Deref for ThinVec<T>[src]
impl<T> DerefMut for ThinVec<T>[src]
impl<T, __E: Encoder> Encodable<__E> for ThinVec<T> where
T: Encodable<__E>, [src]
T: Encodable<__E>,
impl<T> Extend<T> for ThinVec<T>[src]
pub fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)[src]
pub fn extend_one(&mut self, item: T)[src]
pub fn extend_reserve(&mut self, additional: usize)[src]
impl<T> From<Vec<T>> for ThinVec<T>[src]
impl<T: HashStable<CTX>, CTX> HashStable<CTX> for ThinVec<T>[src]
pub fn hash_stable(&self, hcx: &mut CTX, hasher: &mut StableHasher)[src]
impl<T> Into<Vec<T>> for ThinVec<T>[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for ThinVec<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for ThinVec<T> where
T: Send,
T: Send,
impl<T> Sync for ThinVec<T> where
T: Sync,
T: Sync,
impl<T> Unpin for ThinVec<T>
impl<T> UnwindSafe for ThinVec<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut Tⓘ[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Erased for T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,