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