pub enum ValidationWarning {
UnusedToken {
token: SymbolId,
name: String,
},
DuplicateTokenPattern {
tokens: Vec<SymbolId>,
pattern: String,
},
AmbiguousGrammar {
message: String,
},
MissingFieldNames {
rule_symbol: SymbolId,
},
InefficientRule {
symbol: SymbolId,
suggestion: String,
},
}Expand description
Grammar validation warnings (non-fatal issues)
Variants§
UnusedToken
Unused token
DuplicateTokenPattern
Duplicate token pattern
AmbiguousGrammar
Ambiguous grammar (may need GLR)
MissingFieldNames
Missing field names
InefficientRule
Inefficient rule structure
Trait Implementations§
Source§impl Clone for ValidationWarning
impl Clone for ValidationWarning
Source§fn clone(&self) -> ValidationWarning
fn clone(&self) -> ValidationWarning
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 ValidationWarning
impl Debug for ValidationWarning
Source§impl Display for ValidationWarning
impl Display for ValidationWarning
Source§impl PartialEq for ValidationWarning
impl PartialEq for ValidationWarning
impl Eq for ValidationWarning
impl StructuralPartialEq for ValidationWarning
Auto Trait Implementations§
impl Freeze for ValidationWarning
impl RefUnwindSafe for ValidationWarning
impl Send for ValidationWarning
impl Sync for ValidationWarning
impl Unpin for ValidationWarning
impl UnsafeUnpin for ValidationWarning
impl UnwindSafe for ValidationWarning
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.