Struct unrest_tmp_syn::tokens::Bracket
[−]
[src]
pub struct Bracket(pub Span);
Methods
impl Bracket
[src]
fn surround<F>(&self, tokens: &mut Tokens, f: F) where
F: FnOnce(&mut Tokens) -> (),
F: FnOnce(&mut Tokens) -> (),
fn parse<F, R>(
tokens: Cursor,
f: F
) -> Result<(Cursor, (R, Bracket)), ParseError> where
F: FnOnce(Cursor) -> Result<(Cursor, R), ParseError>,
tokens: Cursor,
f: F
) -> Result<(Cursor, (R, Bracket)), ParseError> where
F: FnOnce(Cursor) -> Result<(Cursor, R), ParseError>,
Trait Implementations
impl Default for Bracket
[src]
impl Copy for Bracket
[src]
impl Clone for Bracket
[src]
fn clone(&self) -> Bracket
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more