#[non_exhaustive]pub struct ContentParsed<'a> {
pub consumed: usize,
pub event: ContentEvent<'a>,
}Expand description
What one call to ContentParser::parse found, with the number of input bytes it consumed.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.consumed: usizeThe input bytes consumed. The next call’s input must begin with the bytes after them.
event: ContentEvent<'a>What the consumed bytes held for the caller.
Trait Implementations§
Source§impl<'a> Clone for ContentParsed<'a>
impl<'a> Clone for ContentParsed<'a>
Source§impl<'a> Debug for ContentParsed<'a>
impl<'a> Debug for ContentParsed<'a>
impl<'a> Eq for ContentParsed<'a>
Source§impl<'a> PartialEq for ContentParsed<'a>
impl<'a> PartialEq for ContentParsed<'a>
impl<'a> StructuralPartialEq for ContentParsed<'a>
Auto Trait Implementations§
impl<'a> Forget for ContentParsed<'a>
impl<'a> Freeze for ContentParsed<'a>
impl<'a> RefUnwindSafe for ContentParsed<'a>
impl<'a> Send for ContentParsed<'a>
impl<'a> Sync for ContentParsed<'a>
impl<'a> Unpin for ContentParsed<'a>
impl<'a> UnsafeUnpin for ContentParsed<'a>
impl<'a> UnwindSafe for ContentParsed<'a>
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