Struct darklua_core::nodes::IndexExpression
source · pub struct IndexExpression { /* private fields */ }Implementations§
source§impl 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§
source§impl Clone for IndexExpression
impl Clone for IndexExpression
source§fn clone(&self) -> IndexExpression
fn clone(&self) -> IndexExpression
Returns a copy 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 moresource§impl Debug for IndexExpression
impl Debug for IndexExpression
source§impl From<IndexExpression> for Expression
impl From<IndexExpression> for Expression
source§fn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
source§impl From<IndexExpression> for Prefix
impl From<IndexExpression> for Prefix
source§fn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
source§impl From<IndexExpression> for Variable
impl From<IndexExpression> for Variable
source§fn from(index: IndexExpression) -> Self
fn from(index: IndexExpression) -> Self
Converts to this type from the input type.
source§impl PartialEq<IndexExpression> for IndexExpression
impl PartialEq<IndexExpression> for IndexExpression
source§fn 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 ==.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§
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