pub struct UnaryExpr {
pub op: &'static str,
pub expr: Expr,
}Expand description
Unary expression like NOT x or -x. op is the operator’s AST spelling,
a &'static str drawn from the parser’s operator-constant table
(parser/mod.rs, ADR-0505 §2) — never a runtime-built String.
Fields§
§op: &'static str§expr: ExprTrait Implementations§
impl StructuralPartialEq for UnaryExpr
Auto Trait Implementations§
impl Forget for UnaryExpr
impl Freeze for UnaryExpr
impl Move for UnaryExpr
impl RefUnwindSafe for UnaryExpr
impl Send for UnaryExpr
impl Sync for UnaryExpr
impl Unpin for UnaryExpr
impl UnsafeUnpin 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