Struct darklua_core::nodes::UnaryExpression
source · [−]pub struct UnaryExpression { /* private fields */ }Implementations
sourceimpl UnaryExpression
impl UnaryExpression
pub fn new<E: Into<Expression>>(operator: UnaryOperator, expression: E) -> Self
pub fn with_token(self, token: Token) -> Self
pub fn set_token(&mut self, token: Token)
pub fn get_token(&self) -> Option<&Token>
pub fn get_expression(&self) -> &Expression
pub fn mutate_expression(&mut self) -> &mut Expression
pub fn operator(&self) -> UnaryOperator
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
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 more
sourceimpl Debug for UnaryExpression
impl Debug for UnaryExpression
sourceimpl From<UnaryExpression> for Expression
impl From<UnaryExpression> for Expression
sourcefn from(unary: UnaryExpression) -> Self
fn from(unary: UnaryExpression) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<UnaryExpression> for UnaryExpression
impl PartialEq<UnaryExpression> for UnaryExpression
sourcefn eq(&self, other: &UnaryExpression) -> bool
fn eq(&self, other: &UnaryExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &UnaryExpression) -> bool
fn ne(&self, other: &UnaryExpression) -> bool
This method tests for !=.
impl Eq for UnaryExpression
impl StructuralEq for UnaryExpression
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 T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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