Enum AstUnaryOp
pub enum AstUnaryOp {
Negate,
Plus,
BitwiseNot,
LogicalNot,
PrefixIncrement,
PrefixDecrement,
PostfixIncrement,
PostfixDecrement,
Deref,
AddressOf,
}Expand description
Unary operators.
Variants§
Negate
Plus
BitwiseNot
LogicalNot
PrefixIncrement
PrefixDecrement
PostfixIncrement
PostfixDecrement
Deref
AddressOf
Implementations§
§impl AstUnaryOp
impl AstUnaryOp
pub fn has_side_effects(&self) -> bool
pub fn has_side_effects(&self) -> bool
Does the operator have side effects?
Trait Implementations§
§impl Clone for AstUnaryOp
impl Clone for AstUnaryOp
§fn clone(&self) -> AstUnaryOp
fn clone(&self) -> AstUnaryOp
Returns a duplicate 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 more§impl Debug for AstUnaryOp
impl Debug for AstUnaryOp
§impl Display for AstUnaryOp
impl Display for AstUnaryOp
§impl From<AstUnaryOp> for TokenType
impl From<AstUnaryOp> for TokenType
§fn from(op: AstUnaryOp) -> Self
fn from(op: AstUnaryOp) -> Self
Converts to this type from the input type.
§impl PartialEq for AstUnaryOp
impl PartialEq for AstUnaryOp
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