pub struct CounterDef {
pub min: u32,
pub max: u32,
pub body_nullable: bool,
}Expand description
Definition of a counter used by counted NFA loops.
Each counter tracks how many times a loop body has been completed.
min is the minimum iterations for the exit guard; max is the
maximum iterations for the loop guard.
Fields§
§min: u32Minimum completed iterations required to exit
max: u32Maximum iterations allowed before loop must exit
body_nullable: boolWhether the loop body can be traversed without consuming any input.
When true and num_counters == 1, the RangedSingle fast-forward
path is used in epsilon closure.
Trait Implementations§
Source§impl Clone for CounterDef
impl Clone for CounterDef
Source§fn clone(&self) -> CounterDef
fn clone(&self) -> CounterDef
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 moreimpl Copy for CounterDef
Source§impl Debug for CounterDef
impl Debug for CounterDef
impl Eq for CounterDef
Source§impl PartialEq for CounterDef
impl PartialEq for CounterDef
Source§fn eq(&self, other: &CounterDef) -> bool
fn eq(&self, other: &CounterDef) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CounterDef
Auto Trait Implementations§
impl Freeze for CounterDef
impl RefUnwindSafe for CounterDef
impl Send for CounterDef
impl Sync for CounterDef
impl Unpin for CounterDef
impl UnsafeUnpin for CounterDef
impl UnwindSafe for CounterDef
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