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: Expression
An expression that supports evaluation with the unary operator.
Implementations§
Trait Implementations§
Source§impl From<UnaryOp> for Expression
impl From<UnaryOp> for Expression
impl Eq 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