Struct syntax::tokenstream::ThinTokenStream
[−]
[src]
pub struct ThinTokenStream(_);
🔬 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?
The TokenStream type is large enough to represent a single TokenTree without allocation.
ThinTokenStream is smaller, but needs to allocate to represent a single TokenTree.
We must use ThinTokenStream in TokenTree::Delimited to avoid infinite size due to recursion.
Trait Implementations
impl Debug for ThinTokenStream[src]
impl Debug for ThinTokenStreamfn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
fn fmt(&self, __arg_0: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for ThinTokenStream[src]
impl Clone for ThinTokenStreamfn clone(&self) -> ThinTokenStream[src]
fn clone(&self) -> ThinTokenStreamReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)Performs copy-assignment from source. Read more
impl From<TokenStream> for ThinTokenStream[src]
impl From<TokenStream> for ThinTokenStreamfn from(stream: TokenStream) -> ThinTokenStream[src]
fn from(stream: TokenStream) -> ThinTokenStreamPerforms the conversion.
impl From<ThinTokenStream> for TokenStream[src]
impl From<ThinTokenStream> for TokenStreamfn from(stream: ThinTokenStream) -> TokenStream[src]
fn from(stream: ThinTokenStream) -> TokenStreamPerforms the conversion.
impl Eq for ThinTokenStream[src]
impl Eq for ThinTokenStreamimpl PartialEq<ThinTokenStream> for ThinTokenStream[src]
impl PartialEq<ThinTokenStream> for ThinTokenStreamfn eq(&self, other: &ThinTokenStream) -> bool[src]
fn eq(&self, other: &ThinTokenStream) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Encodable for ThinTokenStream[src]
impl Encodable for ThinTokenStreamfn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>[src]
fn encode<E: Encoder>(&self, encoder: &mut E) -> Result<(), E::Error>🔬 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 Decodable for ThinTokenStream[src]
impl Decodable for ThinTokenStreamfn decode<D: Decoder>(decoder: &mut D) -> Result<ThinTokenStream, D::Error>[src]
fn decode<D: Decoder>(decoder: &mut D) -> Result<ThinTokenStream, D::Error>🔬 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 Hash for ThinTokenStream[src]
impl Hash for ThinTokenStreamAuto Trait Implementations
impl !Send for ThinTokenStream
impl !Send for ThinTokenStreamimpl !Sync for ThinTokenStream
impl !Sync for ThinTokenStream