Struct erg_parser::ast::ConstUnaryOp
source · pub struct ConstUnaryOp {
pub op: Token,
pub expr: Box<ConstExpr>,
}
Fields§
§op: Token
§expr: Box<ConstExpr>
Implementations§
Trait Implementations§
source§impl Clone for ConstUnaryOp
impl Clone for ConstUnaryOp
source§fn clone(&self) -> ConstUnaryOp
fn clone(&self) -> ConstUnaryOp
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 ConstUnaryOp
impl Debug for ConstUnaryOp
source§impl Display for ConstUnaryOp
impl Display for ConstUnaryOp
source§impl Hash for ConstUnaryOp
impl Hash for ConstUnaryOp
source§impl Locational for ConstUnaryOp
impl Locational for ConstUnaryOp
source§impl NestedDisplay for ConstUnaryOp
impl NestedDisplay for ConstUnaryOp
source§impl PartialEq for ConstUnaryOp
impl PartialEq for ConstUnaryOp
source§fn eq(&self, other: &ConstUnaryOp) -> bool
fn eq(&self, other: &ConstUnaryOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ConstUnaryOp
impl StructuralPartialEq for ConstUnaryOp
Auto Trait Implementations§
impl Freeze for ConstUnaryOp
impl RefUnwindSafe for ConstUnaryOp
impl Send for ConstUnaryOp
impl Sync for ConstUnaryOp
impl Unpin for ConstUnaryOp
impl UnwindSafe for ConstUnaryOp
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