Struct ParseResult

Source
pub struct ParseResult<'parse, I: InputType, O, E: ParserExtras<I>> {
    pub input: Input<'parse, I, E>,
    pub output: Option<O>,
    pub errors: Vec<E::Error>,
}

Fields§

§input: Input<'parse, I, E>§output: Option<O>§errors: Vec<E::Error>

Implementations§

Source§

impl<'parse, I: InputType, O, E: ParserExtras<I>> ParseResult<'parse, I, O, E>

Source

pub fn single(result: IResult<'parse, I, E, O>) -> Self

Source

pub fn into_result(self) -> Result<O, E::Error>

Source

pub fn has_errors(&self) -> bool

Source

pub fn has_advanced(&self) -> bool

Auto Trait Implementations§

§

impl<'parse, I, O, E> Freeze for ParseResult<'parse, I, O, E>
where <I as InputType>::Offset: Freeze, O: Freeze,

§

impl<'parse, I, O, E> RefUnwindSafe for ParseResult<'parse, I, O, E>

§

impl<'parse, I, O, E> Send for ParseResult<'parse, I, O, E>
where <I as InputType>::Offset: Send, O: Send, I: Sync, <E as ParserExtras<I>>::Context: Sync, <E as ParserExtras<I>>::Error: Send,

§

impl<'parse, I, O, E> Sync for ParseResult<'parse, I, O, E>
where <I as InputType>::Offset: Sync, O: Sync, I: Sync, <E as ParserExtras<I>>::Context: Sync, <E as ParserExtras<I>>::Error: Sync,

§

impl<'parse, I, O, E> Unpin for ParseResult<'parse, I, O, E>
where <I as InputType>::Offset: Unpin, O: Unpin, <E as ParserExtras<I>>::Error: Unpin,

§

impl<'parse, I, O, E> UnwindSafe for ParseResult<'parse, I, O, E>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.