Struct syntax::ext::tt::quoted::Delimited [−][src]
pub struct Delimited {
pub delim: DelimToken,
pub tts: Vec<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?
Contains the sub-token-trees of a "delimited" token tree, such as the contents of (. Note
that the delimiter itself might be NoDelim.
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?
tts: Vec<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?
Methods
impl Delimited[src]
impl Delimitedpub 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?
Return the opening delimiter (possibly NoDelim).
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?
Return the closing delimiter (possibly NoDelim).
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?
Return a self::TokenTree with a Span corresponding to the opening delimiter.
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?
Return a self::TokenTree with a Span corresponding to the closing delimiter.
Trait Implementations
impl Clone for Delimited[src]
impl Clone for Delimitedfn clone(&self) -> Delimited[src]
fn clone(&self) -> DelimitedReturns 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 Delimitedfn eq(&self, other: &Delimited) -> bool[src]
fn eq(&self, other: &Delimited) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Delimited) -> bool[src]
fn ne(&self, other: &Delimited) -> boolThis method tests for !=.
impl Encodable for Delimited[src]
impl Encodable for Delimitedfn encode<__S: Encoder>(&self, s: &mut __S) -> Result<(), __S::Error>[src]
fn encode<__S: Encoder>(&self, s: &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 Delimitedfn decode<__D: Decoder>(d: &mut __D) -> Result<Delimited, __D::Error>[src]
fn decode<__D: Decoder>(d: &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 Debug for Delimited[src]
impl Debug for Delimited