Struct darklua_core::nodes::IndexExpression
source · [−]pub struct IndexExpression { /* private fields */ }Implementations
sourceimpl IndexExpression
impl IndexExpression
pub fn new<P: Into<Prefix>, E: Into<Expression>>(
prefix: P,
expression: E
) -> Self
pub fn with_tokens(self, tokens: IndexExpressionTokens) -> Self
pub fn set_tokens(&mut self, tokens: IndexExpressionTokens)
pub fn get_tokens(&self) -> Option<&IndexExpressionTokens>
pub fn get_prefix(&self) -> &Prefix
pub fn get_index(&self) -> &Expression
pub fn mutate_prefix(&mut self) -> &mut Prefix
pub fn mutate_index(&mut self) -> &mut Expression
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for IndexExpression
impl Clone for IndexExpression
sourcefn clone(&self) -> IndexExpression
fn clone(&self) -> IndexExpression
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 IndexExpression
impl Debug for IndexExpression
sourceimpl From<IndexExpression> for Prefix
impl From<IndexExpression> for Prefix
sourcefn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
sourceimpl From<IndexExpression> for Expression
impl From<IndexExpression> for Expression
sourcefn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
sourceimpl From<IndexExpression> for Variable
impl From<IndexExpression> for Variable
sourcefn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<IndexExpression> for IndexExpression
impl PartialEq<IndexExpression> for IndexExpression
sourcefn eq(&self, other: &IndexExpression) -> bool
fn eq(&self, other: &IndexExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &IndexExpression) -> bool
fn ne(&self, other: &IndexExpression) -> bool
This method tests for !=.
impl Eq for IndexExpression
impl StructuralEq for IndexExpression
impl StructuralPartialEq for IndexExpression
Auto Trait Implementations
impl RefUnwindSafe for IndexExpression
impl Send for IndexExpression
impl Sync for IndexExpression
impl Unpin for IndexExpression
impl UnwindSafe for IndexExpression
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