pub struct ParseResult<T> {
pub value: T,
pub source: CandidateSource,
pub candidates_tried: usize,
}Expand description
Result of a flexible parse attempt.
Fields§
§value: TSuccessfully parsed value.
source: CandidateSourceWhich candidate succeeded.
candidates_tried: usizeTotal candidates tried.
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for ParseResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for ParseResult<T>where
T: RefUnwindSafe,
impl<T> Send for ParseResult<T>where
T: Send,
impl<T> Sync for ParseResult<T>where
T: Sync,
impl<T> Unpin for ParseResult<T>where
T: Unpin,
impl<T> UnsafeUnpin for ParseResult<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for ParseResult<T>where
T: 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