Struct okane_core::repl::expr::UnaryOpExpr
source · pub struct UnaryOpExpr {
pub op: UnaryOp,
pub expr: Box<Expr>,
}Expand description
Unary operator expression.
Fields§
§op: UnaryOp§expr: Box<Expr>Trait Implementations§
source§impl Clone for UnaryOpExpr
impl Clone for UnaryOpExpr
source§fn clone(&self) -> UnaryOpExpr
fn clone(&self) -> UnaryOpExpr
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UnaryOpExpr
impl Debug for UnaryOpExpr
source§impl PartialEq for UnaryOpExpr
impl PartialEq for UnaryOpExpr
source§fn eq(&self, other: &UnaryOpExpr) -> bool
fn eq(&self, other: &UnaryOpExpr) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for UnaryOpExpr
impl StructuralEq for UnaryOpExpr
impl StructuralPartialEq for UnaryOpExpr
Auto Trait Implementations§
impl RefUnwindSafe for UnaryOpExpr
impl Send for UnaryOpExpr
impl Sync for UnaryOpExpr
impl Unpin for UnaryOpExpr
impl UnwindSafe for UnaryOpExpr
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