Enum koto_parser::AstUnaryOp
source · pub enum AstUnaryOp {
Negate,
Not,
}
Expand description
An operation used in UnaryOp expressions
Variants§
Trait Implementations§
source§impl Clone for AstUnaryOp
impl Clone for AstUnaryOp
source§fn clone(&self) -> AstUnaryOp
fn clone(&self) -> AstUnaryOp
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 AstUnaryOp
impl Debug for AstUnaryOp
source§impl PartialEq for AstUnaryOp
impl PartialEq for AstUnaryOp
source§fn eq(&self, other: &AstUnaryOp) -> bool
fn eq(&self, other: &AstUnaryOp) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for AstUnaryOp
impl Eq for AstUnaryOp
impl StructuralPartialEq for AstUnaryOp
Auto Trait Implementations§
impl Freeze for AstUnaryOp
impl RefUnwindSafe for AstUnaryOp
impl Send for AstUnaryOp
impl Sync for AstUnaryOp
impl Unpin for AstUnaryOp
impl UnwindSafe for AstUnaryOp
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