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§
Source§impl Ord for Var
impl Ord for Var
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 Eq for Var
impl StructuralPartialEq for Var
Auto Trait Implementations§
impl Freeze for Var
impl RefUnwindSafe for Var
impl !Send for Var
impl !Sync for Var
impl Unpin 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