Struct darklua_core::nodes::BinaryExpression
source · [−]pub struct BinaryExpression { /* private fields */ }Implementations
sourceimpl BinaryExpression
impl BinaryExpression
pub fn new<T: Into<Expression>, U: Into<Expression>>(
operator: BinaryOperator,
left: T,
right: U
) -> 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 mutate_left(&mut self) -> &mut Expression
pub fn mutate_right(&mut self) -> &mut Expression
pub fn left(&self) -> &Expression
pub fn right(&self) -> &Expression
pub fn operator(&self) -> BinaryOperator
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for BinaryExpression
impl Clone for BinaryExpression
sourcefn clone(&self) -> BinaryExpression
fn clone(&self) -> BinaryExpression
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 BinaryExpression
impl Debug for BinaryExpression
sourceimpl From<BinaryExpression> for Expression
impl From<BinaryExpression> for Expression
sourcefn from(binary: BinaryExpression) -> Expression
fn from(binary: BinaryExpression) -> Expression
Converts to this type from the input type.
sourceimpl PartialEq<BinaryExpression> for BinaryExpression
impl PartialEq<BinaryExpression> for BinaryExpression
sourcefn eq(&self, other: &BinaryExpression) -> bool
fn eq(&self, other: &BinaryExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &BinaryExpression) -> bool
fn ne(&self, other: &BinaryExpression) -> bool
This method tests for !=.
impl Eq for BinaryExpression
impl StructuralEq for BinaryExpression
impl StructuralPartialEq for BinaryExpression
Auto Trait Implementations
impl RefUnwindSafe for BinaryExpression
impl Send for BinaryExpression
impl Sync for BinaryExpression
impl Unpin for BinaryExpression
impl UnwindSafe for BinaryExpression
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