Enum marker_api::ast::UnaryOpKind
source · #[non_exhaustive]#[repr(C)]pub enum UnaryOpKind {
Neg = 0,
Not = 1,
Deref = 2,
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Neg = 0
The arithmetic negation - operator, like -2
Not = 1
The logical negation ! operator, like !true
Deref = 2
The dereference * operator, like *value
Trait Implementations§
source§impl Clone for UnaryOpKind
impl Clone for UnaryOpKind
source§fn clone(&self) -> UnaryOpKind
fn clone(&self) -> UnaryOpKind
Returns a copy 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 Ord for UnaryOpKind
impl Ord for UnaryOpKind
source§fn cmp(&self, other: &UnaryOpKind) -> Ordering
fn cmp(&self, other: &UnaryOpKind) -> Ordering
1.21.0 · 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 UnaryOpKind
impl PartialEq for UnaryOpKind
source§fn eq(&self, other: &UnaryOpKind) -> bool
fn eq(&self, other: &UnaryOpKind) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for UnaryOpKind
impl PartialOrd for UnaryOpKind
source§fn partial_cmp(&self, other: &UnaryOpKind) -> Option<Ordering>
fn partial_cmp(&self, other: &UnaryOpKind) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for UnaryOpKind
impl Eq for UnaryOpKind
impl StructuralEq for UnaryOpKind
impl StructuralPartialEq for UnaryOpKind
Auto Trait Implementations§
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