pub enum SemanticContext {
None,
Predicate {
rule_index: usize,
pred_index: usize,
context_dependent: bool,
},
Precedence {
precedence: i32,
},
And(Vec<Self>),
Or(Vec<Self>),
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for SemanticContext
impl Clone for SemanticContext
Source§fn clone(&self) -> SemanticContext
fn clone(&self) -> SemanticContext
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 moreSource§impl Debug for SemanticContext
impl Debug for SemanticContext
impl Eq for SemanticContext
Source§impl Hash for SemanticContext
impl Hash for SemanticContext
Source§impl Ord for SemanticContext
impl Ord for SemanticContext
Source§fn cmp(&self, other: &SemanticContext) -> Ordering
fn cmp(&self, other: &SemanticContext) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SemanticContext
impl PartialEq for SemanticContext
Source§impl PartialOrd for SemanticContext
impl PartialOrd for SemanticContext
impl StructuralPartialEq for SemanticContext
Auto Trait Implementations§
impl Freeze for SemanticContext
impl RefUnwindSafe for SemanticContext
impl Send for SemanticContext
impl Sync for SemanticContext
impl Unpin for SemanticContext
impl UnsafeUnpin for SemanticContext
impl UnwindSafe for SemanticContext
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