pub struct Progress<'id> { /* private fields */ }Expand description
Progress tied to one input owner; failures consume it without replaying fields.
Implementations§
Source§impl<'id> Progress<'id>
impl<'id> Progress<'id>
Sourcepub fn advance<'owner, S: Source, E>(
self,
source: &'owner State<'id, S>,
sink: impl FnMut(Entry<'owner>) -> Result<(), E>,
) -> Result<(Self, Option<Parts>), ParseError<E>>
pub fn advance<'owner, S: Source, E>( self, source: &'owner State<'id, S>, sink: impl FnMut(Entry<'owner>) -> Result<(), E>, ) -> Result<(Self, Option<Parts>), ParseError<E>>
Parses appended bytes, retaining field and error borrows on their input owner.
Sourcepub fn scan<S: Source>(
self,
source: &State<'id, S>,
) -> Result<(Self, Option<Parts>), ParseError<Infallible>>
pub fn scan<S: Source>( self, source: &State<'id, S>, ) -> Result<(Self, Option<Parts>), ParseError<Infallible>>
Advances validation without emitting parsed field entries.
Auto Trait Implementations§
impl<'id> !Send for Progress<'id>
impl<'id> !Sync for Progress<'id>
impl<'id> Forget for Progress<'id>
impl<'id> Freeze for Progress<'id>
impl<'id> RefUnwindSafe for Progress<'id>
impl<'id> Unpin for Progress<'id>
impl<'id> UnsafeUnpin for Progress<'id>
impl<'id> UnwindSafe for Progress<'id>
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