pub(crate) struct Parsed<'i, V> {
value: V,
input: &'i [u8],
}
Expand description
The result of parsing a value out of a slice of bytes.
This contains both the parsed value and the offset at which the value ended in the input given. This makes it possible to parse, for example, a datetime value as a prefix of some larger string without knowing ahead of time where it ends.
Fields§
§value: V
The value parsed.
input: &'i [u8]
The remaining unparsed input.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'i, V> Freeze for Parsed<'i, V>where
V: Freeze,
impl<'i, V> RefUnwindSafe for Parsed<'i, V>where
V: RefUnwindSafe,
impl<'i, V> Send for Parsed<'i, V>where
V: Send,
impl<'i, V> Sync for Parsed<'i, V>where
V: Sync,
impl<'i, V> Unpin for Parsed<'i, V>where
V: Unpin,
impl<'i, V> UnwindSafe for Parsed<'i, V>where
V: 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