Struct syntax::tokenstream::Delimited [−][src]
pub struct Delimited {
pub delim: DelimToken,
pub tts: ThinTokenStream,
}A delimited sequence of token trees
Fields
delim: DelimToken
The type of delimiter
tts: ThinTokenStream
The delimited sequence of token trees
Methods
impl Delimited[src]
impl Delimitedpub fn open_token(&self) -> Token[src]
pub fn open_token(&self) -> TokenReturns the opening delimiter as a token.
pub fn close_token(&self) -> Token[src]
pub fn close_token(&self) -> TokenReturns the closing delimiter as a token.
pub fn open_tt(&self, span: Span) -> TokenTree[src]
pub fn open_tt(&self, span: Span) -> TokenTreeReturns the opening delimiter as a token tree.
pub fn close_tt(&self, span: Span) -> TokenTree[src]
pub fn close_tt(&self, span: Span) -> TokenTreeReturns the closing delimiter as a token tree.
pub fn stream(&self) -> TokenStream[src]
pub fn stream(&self) -> TokenStreamReturns the token trees inside the delimiters.
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)1.0.0
[src]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 Delimitedimpl Decodable for Delimited[src]
impl Decodable for Delimitedimpl Debug for Delimited[src]
impl Debug for Delimited