pub struct UnaryExpr {
pub operator: UnaryOperator,
pub right: Box<Expression>,
pub expr_type: TypeId,
pub location: Location,
}
Expand description
A unary expression (e.g., -x)
Fields§
§operator: UnaryOperator
The operator (e.g., -)
right: Box<Expression>
The operand
expr_type: TypeId
Type of the unary expression
location: Location
Source code location information
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UnaryExpr
impl RefUnwindSafe for UnaryExpr
impl Send for UnaryExpr
impl Sync for UnaryExpr
impl Unpin for UnaryExpr
impl UnwindSafe for UnaryExpr
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