pub enum TableAccessPrefix {
Name(Token),
FunctionCall(Pointer<FunctionCall>),
ExpressionWrap(Pointer<ExpressionWrap>),
}Expand description
An enum representing different ways in which a table value can be returned from.
Variants§
Name(Token)
Just a simple access.
local _ = t.nameFunctionCall(Pointer<FunctionCall>)
A function call
local t = fn()ExpressionWrap(Pointer<ExpressionWrap>)
Accessing a table from (...).
local _ = ({ a = "Hello, World!" })
local _ = (t)Trait Implementations§
Source§impl Clone for TableAccessPrefix
impl Clone for TableAccessPrefix
Source§fn clone(&self) -> TableAccessPrefix
fn clone(&self) -> TableAccessPrefix
Returns a duplicate 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 TableAccessPrefix
impl Debug for TableAccessPrefix
Source§impl GetRange for TableAccessPrefix
impl GetRange for TableAccessPrefix
Source§impl Hash for TableAccessPrefix
impl Hash for TableAccessPrefix
Source§impl Ord for TableAccessPrefix
impl Ord for TableAccessPrefix
Source§fn cmp(&self, other: &TableAccessPrefix) -> Ordering
fn cmp(&self, other: &TableAccessPrefix) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl Parse<TableAccessPrefix> for FunctionCall
impl Parse<TableAccessPrefix> for FunctionCall
Source§impl Parse for TableAccessPrefix
impl Parse for TableAccessPrefix
Source§impl PartialEq for TableAccessPrefix
impl PartialEq for TableAccessPrefix
Source§impl PartialOrd for TableAccessPrefix
impl PartialOrd for TableAccessPrefix
Source§impl Print for TableAccessPrefix
impl Print for TableAccessPrefix
Source§fn print_final_trivia(&self) -> String
fn print_final_trivia(&self) -> String
Prints only the very final trivia. Used for the default implementation of
Print::print, which just joins Print::print_without_final_trivia
and this function.Source§fn print_without_final_trivia(&self) -> String
fn print_without_final_trivia(&self) -> String
Prints the whole token including all surrounding trivia, excluding the
very last trailing trivia.
Source§impl TryParse for TableAccessPrefix
impl TryParse for TableAccessPrefix
impl Eq for TableAccessPrefix
impl StructuralPartialEq for TableAccessPrefix
Auto Trait Implementations§
impl Freeze for TableAccessPrefix
impl RefUnwindSafe for TableAccessPrefix
impl !Send for TableAccessPrefix
impl !Sync for TableAccessPrefix
impl Unpin for TableAccessPrefix
impl UnwindSafe for TableAccessPrefix
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