Struct darklua_core::nodes::TableExpression
source · [−]pub struct TableExpression { /* private fields */ }Implementations
sourceimpl TableExpression
impl TableExpression
pub fn new(entries: Vec<TableEntry>) -> Self
pub fn with_tokens(self, tokens: TableTokens) -> Self
pub fn set_tokens(&mut self, tokens: TableTokens)
pub fn get_tokens(&self) -> Option<&TableTokens>
pub fn get_entries(&self) -> &Vec<TableEntry>
pub fn iter_entries(&self) -> impl Iterator<Item = &TableEntry>
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn mutate_entries(&mut self) -> &mut Vec<TableEntry>
pub fn append_entry<T: Into<TableEntry>>(self, entry: T) -> Self
pub fn append_field<S: Into<Identifier>, E: Into<Expression>>(
self,
key: S,
value: E
) -> Self
pub fn append_index<T: Into<Expression>, U: Into<Expression>>(
self,
key: T,
value: U
) -> Self
pub fn append_array_value<E: Into<Expression>>(self, value: E) -> Self
pub fn clear_comments(&mut self)
pub fn clear_whitespaces(&mut self)
Trait Implementations
sourceimpl Clone for TableExpression
impl Clone for TableExpression
sourcefn clone(&self) -> TableExpression
fn clone(&self) -> TableExpression
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 TableExpression
impl Debug for TableExpression
sourceimpl Default for TableExpression
impl Default for TableExpression
sourceimpl From<TableExpression> for Arguments
impl From<TableExpression> for Arguments
sourcefn from(table: TableExpression) -> Self
fn from(table: TableExpression) -> Self
Converts to this type from the input type.
sourceimpl From<TableExpression> for Expression
impl From<TableExpression> for Expression
sourcefn from(table: TableExpression) -> Self
fn from(table: TableExpression) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<TableExpression> for TableExpression
impl PartialEq<TableExpression> for TableExpression
sourcefn eq(&self, other: &TableExpression) -> bool
fn eq(&self, other: &TableExpression) -> bool
This method tests for self and other values to be equal, and is used
by ==. Read more
sourcefn ne(&self, other: &TableExpression) -> bool
fn ne(&self, other: &TableExpression) -> bool
This method tests for !=.
impl Eq for TableExpression
impl StructuralEq for TableExpression
impl StructuralPartialEq for TableExpression
Auto Trait Implementations
impl RefUnwindSafe for TableExpression
impl Send for TableExpression
impl Sync for TableExpression
impl Unpin for TableExpression
impl UnwindSafe for TableExpression
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