Enum topdown::ParserResult
[−]
[src]
pub enum ParserResult<T> { Succ(T), Error(String, LocationInfo), Fail(String, LocationInfo), }
Variants
Succ(T)
Error(String, LocationInfo)
Fail(String, LocationInfo)
Methods
impl<T> ParserResult<T>
[src]
fn map<S, F>(self, f: F) -> ParserResult<S> where
F: Fn(T) -> S,
F: Fn(T) -> S,
fn and_then<S, F>(self, f: F) -> ParserResult<S> where
F: FnMut(T) -> ParserResult<S>,
F: FnMut(T) -> ParserResult<S>,