pub struct UnaryOp {
pub operator: Spanned<UnaryOperator>,
pub expr: Expression,
/* private fields */
}Expand description
An operation that applies an operator to one expression.
Fields§
§operator: Spanned<UnaryOperator>The unary operator to use on the expression.
expr: ExpressionAn expression that supports evaluation with the unary operator.
Implementations§
Trait Implementations§
impl Eq for UnaryOp
Source§impl From<UnaryOp> for Expression
impl From<UnaryOp> for Expression
Auto Trait Implementations§
impl Freeze for UnaryOp
impl RefUnwindSafe for UnaryOp
impl Send for UnaryOp
impl Sync for UnaryOp
impl Unpin for UnaryOp
impl UnsafeUnpin 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