pub enum UnaryOpKind {
Not,
BitNot,
Factorial,
Neg,
}Expand description
The unary operation that is being performed.
Variants§
Implementations§
Source§impl UnaryOpKind
impl UnaryOpKind
Sourcepub fn precedence(&self) -> Precedence
pub fn precedence(&self) -> Precedence
Returns the precedence of the unary operation.
Sourcepub fn associativity(&self) -> Associativity
pub fn associativity(&self) -> Associativity
Returns the associativity of the unary operation.
Trait Implementations§
Source§impl Clone for UnaryOpKind
impl Clone for UnaryOpKind
Source§fn clone(&self) -> UnaryOpKind
fn clone(&self) -> UnaryOpKind
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 UnaryOpKind
impl Debug for UnaryOpKind
Source§impl PartialEq for UnaryOpKind
impl PartialEq for UnaryOpKind
impl Copy for UnaryOpKind
impl Eq for UnaryOpKind
impl StructuralPartialEq for UnaryOpKind
Auto Trait Implementations§
impl Freeze for UnaryOpKind
impl RefUnwindSafe for UnaryOpKind
impl Send for UnaryOpKind
impl Sync for UnaryOpKind
impl Unpin for UnaryOpKind
impl UnwindSafe for UnaryOpKind
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