pub struct ShadowScannerReport {
pub byte_complete: bool,
pub token_count: usize,
pub diagnostic_codes: Vec<&'static str>,
pub last_token_end: usize,
pub input_len: usize,
pub gap_at: Option<usize>,
pub overlapping: bool,
}Expand description
Byte-completeness report from running the streaming scanner over an input. Used by the integration harness to gate the cutover (step 12) — until every allowlisted fixture is covered byte-completely with no overlaps or gaps, the new scanner cannot replace the line-based lexer.
Fields§
§byte_complete: boolTrue when token spans cover the entire input contiguously and no two non-synthetic tokens overlap.
token_count: usizeTotal tokens emitted (including trivia and stream markers).
diagnostic_codes: Vec<&'static str>Diagnostic codes emitted during scanning, in order.
last_token_end: usizeHighest end-index reached across non-synthetic tokens.
input_len: usize§gap_at: Option<usize>First byte index where coverage is missing, if any.
overlapping: boolTrue if any non-synthetic token’s start index is below the preceding token’s end (a regression in the splice/queue logic).
Trait Implementations§
Source§impl Clone for ShadowScannerReport
impl Clone for ShadowScannerReport
Source§fn clone(&self) -> ShadowScannerReport
fn clone(&self) -> ShadowScannerReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ShadowScannerReport
impl RefUnwindSafe for ShadowScannerReport
impl Send for ShadowScannerReport
impl Sync for ShadowScannerReport
impl Unpin for ShadowScannerReport
impl UnsafeUnpin for ShadowScannerReport
impl UnwindSafe for ShadowScannerReport
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