pub struct PrefixAnalysis {
pub prefix: Vec<Combinator>,
pub suffixes: Vec<Suffix>,
pub severity: BacktrackingSeverity,
}Expand description
Result of analyzing a Choice node for common prefixes
Fields§
§prefix: Vec<Combinator>The shared prefix elements
suffixes: Vec<Suffix>What remains after the prefix for each alternative
severity: BacktrackingSeverityHow severe the backtracking issue is
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PrefixAnalysis
impl RefUnwindSafe for PrefixAnalysis
impl Send for PrefixAnalysis
impl Sync for PrefixAnalysis
impl Unpin for PrefixAnalysis
impl UnsafeUnpin for PrefixAnalysis
impl UnwindSafe for PrefixAnalysis
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