Struct rsonpath::classification::ResumeClassifierState
source · pub struct ResumeClassifierState<'i, I, Q, M, const N: usize>where
I: InputBlockIterator<'i, N>,{
pub iter: Q,
pub block: Option<ResumeClassifierBlockState<'i, I, M, N>>,
pub are_commas_on: bool,
pub are_colons_on: bool,
}
Expand description
State allowing resumption of a classifier from a particular place
in the input along with the stopped QuoteClassifiedIterator
.
Fields§
§iter: Q
The stopped iterator.
block: Option<ResumeClassifierBlockState<'i, I, M, N>>
The block at which classification was stopped.
are_commas_on: bool
Was comma classification turned on when the classification was stopped.
are_colons_on: bool
Was colon classification turned on when the classification was stopped.
Implementations§
source§impl<'i, I, Q, M, const N: usize> ResumeClassifierState<'i, I, Q, M, N>where
I: InputBlockIterator<'i, N>,
Q: QuoteClassifiedIterator<'i, I, M, N>,
impl<'i, I, Q, M, const N: usize> ResumeClassifierState<'i, I, Q, M, N>where I: InputBlockIterator<'i, N>, Q: QuoteClassifiedIterator<'i, I, M, N>,
sourcepub fn get_idx(&self) -> usize
pub fn get_idx(&self) -> usize
Get the index in the original bytes input at which classification has stopped.
sourcepub fn forward_to(&mut self, index: usize) -> Result<(), InputError>
pub fn forward_to(&mut self, index: usize) -> Result<(), InputError>
Auto Trait Implementations§
impl<'i, I, Q, M, const N: usize> RefUnwindSafe for ResumeClassifierState<'i, I, Q, M, N>where M: RefUnwindSafe, Q: RefUnwindSafe, <I as InputBlockIterator<'i, N>>::Block: RefUnwindSafe,
impl<'i, I, Q, M, const N: usize> Send for ResumeClassifierState<'i, I, Q, M, N>where M: Send, Q: Send, <I as InputBlockIterator<'i, N>>::Block: Send,
impl<'i, I, Q, M, const N: usize> Sync for ResumeClassifierState<'i, I, Q, M, N>where M: Sync, Q: Sync, <I as InputBlockIterator<'i, N>>::Block: Sync,
impl<'i, I, Q, M, const N: usize> Unpin for ResumeClassifierState<'i, I, Q, M, N>where M: Unpin, Q: Unpin, <I as InputBlockIterator<'i, N>>::Block: Unpin,
impl<'i, I, Q, M, const N: usize> UnwindSafe for ResumeClassifierState<'i, I, Q, M, N>where M: UnwindSafe, Q: UnwindSafe, <I as InputBlockIterator<'i, N>>::Block: 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