pub enum OperatorKind {
Unary {
value: &'static str,
},
Binary {
value: &'static str,
associativity: Associativity,
},
Other,
}Expand description
Operator kind.
Variants§
Unary
Single argument operator, i.e negation.
Binary
Two argument operator, i.e sum.
Other
Any operator handled by extension (i.e. the “=” operator).
Implementations§
Source§impl OperatorKind
impl OperatorKind
pub fn new_binary( value: &'static str, associativity: Associativity, ) -> OperatorKind
pub fn new_binary_left(value: &'static str) -> OperatorKind
pub fn new_binary_right(value: &'static str) -> OperatorKind
pub fn new_unary(value: &'static str) -> OperatorKind
pub fn new_other() -> OperatorKind
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
Source§fn clone(&self) -> OperatorKind
fn clone(&self) -> OperatorKind
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 OperatorKind
impl Debug for OperatorKind
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
impl Copy for OperatorKind
impl StructuralPartialEq for OperatorKind
Auto Trait Implementations§
impl Freeze for OperatorKind
impl RefUnwindSafe for OperatorKind
impl Send for OperatorKind
impl Sync for OperatorKind
impl Unpin for OperatorKind
impl UnwindSafe for OperatorKind
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