#[non_exhaustive]pub enum UnaryOperator {
Plus,
Minus,
Not,
}Expand description
A prefix operator.
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.
Trait Implementations§
Source§impl Clone for UnaryOperator
impl Clone for UnaryOperator
impl Copy for UnaryOperator
Source§impl Debug for UnaryOperator
impl Debug for UnaryOperator
impl Eq for UnaryOperator
Source§impl Hash for UnaryOperator
impl Hash for UnaryOperator
Source§impl PartialEq for UnaryOperator
impl PartialEq for UnaryOperator
impl StructuralPartialEq for UnaryOperator
Auto Trait Implementations§
impl Freeze for UnaryOperator
impl RefUnwindSafe for UnaryOperator
impl Send for UnaryOperator
impl Sync for UnaryOperator
impl Unpin for UnaryOperator
impl UnsafeUnpin for UnaryOperator
impl UnwindSafe for UnaryOperator
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