pub struct Ingested<T> {
pub value: T,
pub skips: Vec<SkipNotice>,
}Expand description
A parsed value plus everything unexpected the parser skipped on the way.
A named wrapper rather than a tuple, so it can grow fields additively — a parse count, for instance — without breaking every call site.
Fields§
§value: TThe parsed value.
skips: Vec<SkipNotice>Everything the parser skipped, in file order.
Trait Implementations§
impl<T: Eq> Eq for Ingested<T>
impl<T: PartialEq> StructuralPartialEq for Ingested<T>
Auto Trait Implementations§
impl<T> Freeze for Ingested<T>where
T: Freeze,
impl<T> RefUnwindSafe for Ingested<T>where
T: RefUnwindSafe,
impl<T> Send for Ingested<T>where
T: Send,
impl<T> Sync for Ingested<T>where
T: Sync,
impl<T> Unpin for Ingested<T>where
T: Unpin,
impl<T> UnsafeUnpin for Ingested<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Ingested<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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.