Struct syntex_syntax::ast::Delimited
[−]
[src]
pub struct Delimited { pub delim: DelimToken, pub open_span: Span, pub tts: Vec<TokenTree>, pub close_span: Span, }
A delimited sequence of token trees
Fields
delim | The type of delimiter |
open_span | The span covering the opening delimiter |
tts | The delimited sequence of token trees |
close_span | The span covering the closing delimiter |
Methods
impl Delimited
fn open_token(&self) -> Token
Returns the opening delimiter as a token.
fn close_token(&self) -> Token
Returns the closing delimiter as a token.
fn open_tt(&self) -> TokenTree
Returns the opening delimiter as a token tree.
fn close_tt(&self) -> TokenTree
Returns the closing delimiter as a token tree.