Enum nom::IResult [] [src]

pub enum IResult<'a, I, O> {
    Done(I, O),
    Error(Err<'a>),
    Incomplete(Needed),
}

Holds the result of parsing functions

It depends on I, the input types, and O, the output type.

Variants

Done
Error
Incomplete

Methods

impl<'a, I, O> IResult<'a, I, O>

fn is_done(&self) -> bool

fn is_err(&self) -> bool

fn is_incomplete(&self) -> bool

Trait Implementations

impl<'a, I, O> GetInput<&'a [I]> for IResult<'a, &'a [I], O>

fn remaining_input(&self) -> Option<&'a [I]>

impl<'a, O> GetInput<()> for IResult<'a, (), O>

fn remaining_input(&self) -> Option<()>

impl<'a, I, O> GetOutput<&'a [O]> for IResult<'a, I, &'a [O]>

fn output(&self) -> Option<&'a [O]>

impl<'a, I> GetOutput<()> for IResult<'a, I, ()>

fn output(&self) -> Option<()>

Derived Implementations

impl<'a, I: Clone, O: Clone> Clone for IResult<'a, I, O>

fn clone(&self) -> IResult<'a, I, O>

fn clone_from(&mut self, source: &Self)

impl<'a, I: Eq, O: Eq> Eq for IResult<'a, I, O>

impl<'a, I: PartialEq, O: PartialEq> PartialEq for IResult<'a, I, O>

fn eq(&self, __arg_0: &IResult<'a, I, O>) -> bool

fn ne(&self, __arg_0: &IResult<'a, I, O>) -> bool

impl<'a, I: Debug, O: Debug> Debug for IResult<'a, I, O>

fn fmt(&self, __arg_0: &mut Formatter) -> Result