pub struct SegmentTokens { /* private fields */ }Expand description
One segment tokenized off-thread - opaque; ingested by
crate::Document::absorb_highlight. Carries stride checkpoints, the end
boundary, and (for a requested sub-range) dense window spans+states.
Implementations§
Source§impl SegmentTokens
impl SegmentTokens
Sourcepub fn tokenized_rows(&self) -> u32
pub fn tokenized_rows(&self) -> u32
How many rows this segment actually tokenized (< rows().len() when a
converging re-run spliced a proven-identical tail from the old segment).
Sourcepub fn end_boundary(&self) -> &SegmentBoundary
pub fn end_boundary(&self) -> &SegmentBoundary
The end-of-segment boundary (the true state after rows.end - 1 once
this segment is verified) - what the coordinator chains the next
segment’s verification against.
Sourcepub fn started_fresh(&self) -> bool
pub fn started_fresh(&self) -> bool
Whether this segment started from the fresh (guessed) state.
Auto Trait Implementations§
impl Freeze for SegmentTokens
impl RefUnwindSafe for SegmentTokens
impl Send for SegmentTokens
impl Sync for SegmentTokens
impl Unpin for SegmentTokens
impl UnsafeUnpin for SegmentTokens
impl UnwindSafe for SegmentTokens
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