pub enum SkipTracking {
CountOnly,
TrackRegions,
CaptureData,
}Expand description
Controls how much detail the parser records about unparsed regions.
Defaults to CountOnly for constant-memory operation. Higher levels
allocate per-region and should only be enabled for diagnostics.
Variants§
CountOnly
Track only bytes_read and bytes_skipped counters. No allocation.
TrackRegions
Record offset, length, and reason for each unparsed region.
CaptureData
Like TrackRegions, but also capture the skipped bytes themselves.
Trait Implementations§
Source§impl Clone for SkipTracking
impl Clone for SkipTracking
Source§fn clone(&self) -> SkipTracking
fn clone(&self) -> SkipTracking
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkipTracking
impl Debug for SkipTracking
Source§impl PartialEq for SkipTracking
impl PartialEq for SkipTracking
impl Copy for SkipTracking
impl Eq for SkipTracking
impl StructuralPartialEq for SkipTracking
Auto Trait Implementations§
impl Freeze for SkipTracking
impl RefUnwindSafe for SkipTracking
impl Send for SkipTracking
impl Sync for SkipTracking
impl Unpin for SkipTracking
impl UnsafeUnpin for SkipTracking
impl UnwindSafe for SkipTracking
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