pub struct ResumeClassifierState<'a, I: QuoteClassifiedIterator<'a>> {
    pub iter: I,
    pub block: Option<ResumeClassifierBlockState<'a>>,
}
Expand description

State allowing resumption of a classifier from a particular place in the input along with the stopped QuoteClassifiedIterator.

Fields

iter: I

The stopped iterator.

block: Option<ResumeClassifierBlockState<'a>>

The block at which classification was stopped.

Implementations

Get the index in the original bytes input at which classification has stopped.

Move the state forward by count bytes.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.