pub type LeafResult<'i, T> = Result<(T, &'i [u8]), (ParseError, &'i [u8])>;Expand description
Result type returned by Leaf::parse.
Contains the error information inline, unlike ParserResult.
Aliased Type§
pub enum LeafResult<'i, T> {
Ok((T, &'i [u8])),
Err((ParseError, &'i [u8])),
}Variants§
Ok((T, &'i [u8]))
Contains the success value
Err((ParseError, &'i [u8]))
Contains the error value