pub enum UnaryOp {
Neg,
Not,
LogicalNot,
Abs,
Sqrt,
Rsqrt,
Floor,
Ceil,
Round,
Trunc,
Sign,
}Expand description
Unary operations.
Variants§
Neg
Negation.
Not
Bitwise NOT.
LogicalNot
Logical NOT (for booleans).
Abs
Absolute value.
Sqrt
Square root.
Rsqrt
Reciprocal square root.
Floor
Floor.
Ceil
Ceiling.
Round
Round to nearest.
Trunc
Truncate.
Sign
Sign.
Trait Implementations§
impl Copy for UnaryOp
impl Eq for UnaryOp
impl StructuralPartialEq for UnaryOp
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnwindSafe for UnaryOp
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