pub enum Var {
ERROR,
Name(Token),
TableAccess(TableAccess),
}Expand description
Possible ways in which a variable can be referenced.
Variants§
ERROR
This Var had a syntax error.
Name(Token)
A simple reference to the variable.
local _ = fooTableAccess(TableAccess)
A field accessed from a table.
local _ = t.fooTrait Implementations§
impl Eq for Var
Source§impl Ord for Var
impl Ord for Var
1.21.0 (const: unstable) · 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 PartialOrd for Var
impl PartialOrd for Var
Source§impl Print for Var
impl Print for Var
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.
impl StructuralPartialEq for Var
Auto Trait Implementations§
impl !Send for Var
impl !Sync for Var
impl Freeze for Var
impl RefUnwindSafe for Var
impl Unpin for Var
impl UnsafeUnpin for Var
impl UnwindSafe for Var
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