Struct ressa::node::UnaryExpression
source · pub struct UnaryExpression {
pub operator: UnaryOperator,
pub prefix: bool,
pub argument: Box<Expression>,
}
Expand description
An operation that takes one argument
Fields
operator: UnaryOperator
prefix: bool
argument: Box<Expression>
Implementations
sourceimpl UnaryExpression
impl UnaryExpression
pub fn new(operator: UnaryOperator, prefix: bool, arg: Expression) -> Self
pub fn has_operator(&self, op: &UnaryOperator) -> bool
pub fn has_ident_arg(&self) -> bool
Trait Implementations
sourceimpl Clone for UnaryExpression
impl Clone for UnaryExpression
sourcefn clone(&self) -> UnaryExpression
fn clone(&self) -> UnaryExpression
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for UnaryExpression
impl Debug for UnaryExpression
sourceimpl PartialEq<UnaryExpression> for UnaryExpression
impl PartialEq<UnaryExpression> for UnaryExpression
sourcefn eq(&self, other: &UnaryExpression) -> bool
fn eq(&self, other: &UnaryExpression) -> bool
impl StructuralPartialEq for UnaryExpression
Auto Trait Implementations
impl RefUnwindSafe for UnaryExpression
impl Send for UnaryExpression
impl Sync for UnaryExpression
impl Unpin for UnaryExpression
impl UnwindSafe for UnaryExpression
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more