Struct rsonpath::classification::ResumeClassifierState
source · pub struct ResumeClassifierState<'i, I, Q, const N: usize>where
I: InputBlockIterator<'i, N>,{
pub iter: Q,
pub block: Option<ResumeClassifierBlockState<'i, I, 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, 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, const N: usize> ResumeClassifierState<'i, I, Q, N>where
I: InputBlockIterator<'i, N>,
Q: QuoteClassifiedIterator<'i, I, N>,
impl<'i, I, Q, const N: usize> ResumeClassifierState<'i, I, Q, N>where I: InputBlockIterator<'i, N>, Q: QuoteClassifiedIterator<'i, I, 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 offset_bytes(&mut self, count: isize) -> Result<(), InputError>
pub fn offset_bytes(&mut self, count: isize) -> Result<(), InputError>
Auto Trait Implementations§
impl<'i, I, Q, const N: usize> RefUnwindSafe for ResumeClassifierState<'i, I, Q, N>where Q: RefUnwindSafe, <I as InputBlockIterator<'i, N>>::Block: RefUnwindSafe,
impl<'i, I, Q, const N: usize> Send for ResumeClassifierState<'i, I, Q, N>where Q: Send, <I as InputBlockIterator<'i, N>>::Block: Send,
impl<'i, I, Q, const N: usize> Sync for ResumeClassifierState<'i, I, Q, N>where Q: Sync, <I as InputBlockIterator<'i, N>>::Block: Sync,
impl<'i, I, Q, const N: usize> Unpin for ResumeClassifierState<'i, I, Q, N>where Q: Unpin, <I as InputBlockIterator<'i, N>>::Block: Unpin,
impl<'i, I, Q, const N: usize> UnwindSafe for ResumeClassifierState<'i, I, Q, N>where 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