Struct syntax::parse::token::LazyTokenStream [−][src]
pub struct LazyTokenStream(Lock<Option<TokenStream>>);
🔬 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?
Methods
impl LazyTokenStream[src]
impl LazyTokenStreamfn new() -> Self[src]
fn new() -> Self🔬 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?
fn force<F: FnOnce() -> TokenStream>(&self, f: F) -> TokenStream[src]
fn force<F: FnOnce() -> TokenStream>(&self, f: F) -> TokenStream🔬 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 Clone for LazyTokenStream[src]
impl Clone for LazyTokenStreamfn clone(&self) -> LazyTokenStream[src]
fn clone(&self) -> LazyTokenStreamReturns 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 Eq for LazyTokenStream[src]
impl Eq for LazyTokenStreamfn assert_receiver_is_total_eq(&self)1.0.0[src]
fn assert_receiver_is_total_eq(&self)impl PartialEq for LazyTokenStream[src]
impl PartialEq for LazyTokenStreamfn eq(&self, _other: &LazyTokenStream) -> bool[src]
fn eq(&self, _other: &LazyTokenStream) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
#[must_use]
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=.
impl Debug for LazyTokenStream[src]
impl Debug for LazyTokenStreamfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Encodable for LazyTokenStream[src]
impl Encodable for LazyTokenStreamfn encode<S: Encoder>(&self, _: &mut S) -> Result<(), S::Error>[src]
fn encode<S: Encoder>(&self, _: &mut S) -> Result<(), S::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 LazyTokenStream[src]
impl Decodable for LazyTokenStreamfn decode<D: Decoder>(_: &mut D) -> Result<LazyTokenStream, D::Error>[src]
fn decode<D: Decoder>(_: &mut D) -> Result<LazyTokenStream, 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 LazyTokenStream[src]
impl Hash for LazyTokenStreamAuto Trait Implementations
impl !Send for LazyTokenStream
impl !Send for LazyTokenStreamimpl !Sync for LazyTokenStream
impl !Sync for LazyTokenStream