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