Trait token_parser::Parsable [−][src]
pub trait Parsable<C>: Sized { fn parse_symbol(_name: String, _context: &C) -> Result<Self> { ... } fn parse_list(_parser: &mut Parser, _context: &C) -> Result<Self> { ... } }
Expand description
This trait needs to be implemented for every struct which can be parsed using the token parser.
Provided methods
fn parse_symbol(_name: String, _context: &C) -> Result<Self>
[src]
Expand description
When a symbol is found by the parser, this will be called.
fn parse_list(_parser: &mut Parser, _context: &C) -> Result<Self>
[src]
Expand description
When a subparser is found by the parser, this will be called.
Implementations on Foreign Types
impl<C, T: Parsable<C>> Parsable<C> for Box<T>
[src]
impl<C, T: Parsable<C>> Parsable<C> for Box<T>
[src]fn parse_symbol(name: String, context: &C) -> Result<Self>
[src]
fn parse_list(parser: &mut Parser, context: &C) -> Result<Self>
[src]
impl<C, T: Parsable<C>> Parsable<C> for Vec<T>
[src]
impl<C, T: Parsable<C>> Parsable<C> for Vec<T>
[src]