Trait syn::synom::Parser
[−]
[src]
pub trait Parser: Sized { type Output; fn parse2(self, tokens: TokenStream) -> Result<Self::Output, ParseError>; fn parse(self, tokens: TokenStream) -> Result<Self::Output, ParseError> { ... } fn parse_str(self, s: &str) -> Result<Self::Output, ParseError> { ... } }
Parser that can parse Rust tokens into a particular syntax tree node.
Refer to the module documentation for details about parsing in Syn.
This trait is available if Syn is built with the "parsing"
feature.