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 GetRange for Var
impl GetRange for Var
Source§fn get_range(&self) -> Result<Range, GetRangeError>
fn get_range(&self) -> Result<Range, GetRangeError>
Get the range of the node. This will only fail if
Cst.status is
AstStatus::HasErrors.Source§impl Ord for Var
impl Ord for Var
Source§impl Parse<Expression> for Var
impl Parse<Expression> for Var
Source§fn parse(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
) -> Option<Expression>
fn parse( token: Token, lexer: &mut Lexer<'_>, errors: &mut Vec<ParseError>, ) -> Option<Expression>
Try parsing the current item, starting from the passed token.
Source§impl PartialOrd for Var
impl PartialOrd for Var
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