Struct syntax::tokenstream::Delimited
[−]
[src]
pub struct Delimited { pub delim: DelimToken, pub tts: 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?
A delimited sequence of token trees
Fields
delim: DelimToken
🔬 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 type of delimiter
tts: 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 delimited sequence of token trees
Methods
impl Delimited
[src]
impl Delimited
pub fn open_token(&self) -> Token
[src]
pub fn open_token(&self) -> Token
🔬 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?
Returns the opening delimiter as a token.
pub fn close_token(&self) -> Token
[src]
pub fn close_token(&self) -> Token
🔬 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?
Returns the closing delimiter as a token.
pub fn open_tt(&self, span: Span) -> TokenTree
[src]
pub fn open_tt(&self, span: Span) -> TokenTree
🔬 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?
Returns the opening delimiter as a token tree.
pub fn close_tt(&self, span: Span) -> TokenTree
[src]
pub fn close_tt(&self, span: Span) -> TokenTree
🔬 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?
Returns the closing delimiter as a token tree.
pub fn stream(&self) -> TokenStream
[src]
pub fn stream(&self) -> 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?
Returns the token trees inside the delimiters.
Trait Implementations
impl Clone for Delimited
[src]
impl Clone for Delimited
fn clone(&self) -> Delimited
[src]
fn clone(&self) -> Delimited
Returns 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 PartialEq for Delimited
[src]
impl PartialEq for Delimited
fn eq(&self, __arg_0: &Delimited) -> bool
[src]
fn eq(&self, __arg_0: &Delimited) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Delimited) -> bool
[src]
fn ne(&self, __arg_0: &Delimited) -> bool
This method tests for !=
.
impl Eq for Delimited
[src]
impl Eq for Delimited
impl Encodable for Delimited
[src]
impl Encodable for Delimited
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
[src]
fn encode<__S: Encoder>(&self, __arg_0: &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 Delimited
[src]
impl Decodable for Delimited
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Delimited, __D::Error>
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Delimited, __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 Delimited
[src]
impl Hash for Delimited
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Delimited
[src]
impl Debug for Delimited