Struct syntax::util::ThinVec [] [src]

pub struct ThinVec<T>(_);
🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

A vector type optimized for cases where this size is usually 0 (c.f. SmallVector). The Option<Box<..>> wrapping allows us to represent a zero sized vector with None, which uses only a single (null) pointer.

Methods

impl<T> ThinVec<T>
[src]

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

Trait Implementations

impl<T: Clone> Clone for ThinVec<T>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<T: PartialEq> PartialEq for ThinVec<T>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl<T: Eq> Eq for ThinVec<T>
[src]

impl<T: Encodable> Encodable for ThinVec<T>
[src]

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl<T: Decodable> Decodable for ThinVec<T>
[src]

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

impl<T: Hash> Hash for ThinVec<T>
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<T: Debug> Debug for ThinVec<T>
[src]

[src]

Formats the value using the given formatter. Read more

impl<T> From<Vec<T>> for ThinVec<T>
[src]

[src]

Performs the conversion.

impl<T> Into<Vec<T>> for ThinVec<T>
[src]

Important traits for Vec<u8>
[src]

Performs the conversion.

impl<T> Extend<T> for ThinVec<T>
[src]

[src]

Extends a collection with the contents of an iterator. Read more

impl HasAttrs for ThinVec<Attribute>
[src]

Important traits for &'a [u8]
[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?

[src]

🔬 This is a nightly-only experimental API. (rustc_private)

this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml instead?