Enum nom::IResult
[−]
[src]
pub enum IResult<I, O, E = u32> { Done(I, O), Error(Err<I, E>), Incomplete(Needed), }
Holds the result of parsing functions
It depends on I, the input type, O, the output type, and E, the error type (by default u32)
Variants
Done(I, O)
indicates a correct parsing, the first field containing the rest of the unparsed data, the second field contains the parsed data
Error(Err<I, E>)
contains a Err, an enum that can indicate an error code, a position in the input, and a pointer to another error, making a list of errors in the parsing tree
Incomplete(Needed)
Incomplete contains a Needed, an enum than can represent a known quantity of input data, or unknown
Methods
impl<I, O, E> IResult<I, O, E>
[src]
Trait Implementations
impl<I: Clone, O: Clone, E: Clone> Clone for IResult<I, O, E>
[src]
fn clone(&self) -> IResult<I, O, E>
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
impl<I: Eq, O: Eq, E: Eq> Eq for IResult<I, O, E>
[src]
impl<I: PartialEq, O: PartialEq, E: PartialEq> PartialEq for IResult<I, O, E>
[src]
fn eq(&self, __arg_0: &IResult<I, O, E>) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &IResult<I, O, E>) -> bool
This method tests for !=
.