Enum moore_svlog_syntax::token::Op
source · [−]pub enum Op {
Show 52 variants
Assign,
AssignAdd,
AssignSub,
AssignMul,
AssignDiv,
AssignMod,
AssignBitAnd,
AssignBitOr,
AssignBitXor,
AssignLogicShL,
AssignLogicShR,
AssignArithShL,
AssignArithShR,
Add,
Sub,
Mul,
Div,
Mod,
Pow,
Inc,
Dec,
LogicEq,
LogicNeq,
CaseEq,
CaseNeq,
WildcardEq,
WildcardNeq,
Lt,
Leq,
Gt,
Geq,
LogicNot,
LogicAnd,
LogicOr,
LogicImpl,
LogicEquiv,
BitNot,
BitAnd,
BitNand,
BitOr,
BitNor,
BitXor,
BitXnor,
BitNxor,
LogicShL,
LogicShR,
ArithShL,
ArithShR,
SeqImplOl,
SeqImplNol,
SeqFollowOl,
SeqFollowNol,
}
Expand description
Operator symbols.
Variants
Assign
AssignAdd
AssignSub
AssignMul
AssignDiv
AssignMod
AssignBitAnd
AssignBitOr
AssignBitXor
AssignLogicShL
AssignLogicShR
AssignArithShL
AssignArithShR
Add
Sub
Mul
Div
Mod
Pow
Inc
Dec
LogicEq
LogicNeq
CaseEq
CaseNeq
WildcardEq
WildcardNeq
Lt
Leq
Gt
Geq
LogicNot
LogicAnd
LogicOr
LogicImpl
LogicEquiv
BitNot
BitAnd
BitNand
BitOr
BitNor
BitXor
BitXnor
BitNxor
LogicShL
LogicShR
ArithShL
ArithShR
SeqImplOl
SeqImplNol
SeqFollowOl
SeqFollowNol
Implementations
sourceimpl Op
impl Op
pub fn as_str(self) -> &'static str
pub fn get_precedence(self) -> Precedence
Trait Implementations
sourceimpl<'a> ForEachNode<'a> for Op
impl<'a> ForEachNode<'a> for Op
sourcefn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
fn for_each_node(&'a self, each: &mut dyn FnMut(&'a dyn AnyNode<'a>))
Apply a function to this node.
sourceimpl<'a> WalkVisitor<'a> for Op
impl<'a> WalkVisitor<'a> for Op
impl Copy for Op
impl Eq for Op
impl StructuralEq for Op
impl StructuralPartialEq for Op
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more