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>
impl<'parse, I: InputType, O, E: ParserExtras<I>> ParseResult<'parse, I, O, E>
pub fn single(result: IResult<'parse, I, E, O>) -> Self
pub fn into_result(self) -> Result<O, E::Error>
pub fn has_errors(&self) -> bool
pub fn has_advanced(&self) -> bool
Auto Trait Implementations§
impl<'parse, I, O, E> Freeze for ParseResult<'parse, I, O, E>
impl<'parse, I, O, E> RefUnwindSafe for ParseResult<'parse, I, O, E>where
<I as InputType>::Offset: RefUnwindSafe,
O: RefUnwindSafe,
I: RefUnwindSafe,
<E as ParserExtras<I>>::Context: RefUnwindSafe,
<E as ParserExtras<I>>::Error: RefUnwindSafe,
impl<'parse, I, O, E> Send for ParseResult<'parse, I, O, E>
impl<'parse, I, O, E> Sync for ParseResult<'parse, I, O, E>
impl<'parse, I, O, E> Unpin for ParseResult<'parse, I, O, E>
impl<'parse, I, O, E> UnwindSafe for ParseResult<'parse, I, O, E>where
<I as InputType>::Offset: UnwindSafe,
O: UnwindSafe,
I: RefUnwindSafe,
<E as ParserExtras<I>>::Context: RefUnwindSafe,
<E as ParserExtras<I>>::Error: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more