pub enum TableAccessKey {
Expression(Pointer<TableKey>),
Name {
dot: Pointer<Token>,
name: Pointer<Token>,
},
}Expand description
Enum representing different ways in which a table’s index can be accessed.
Variants§
Expression(Pointer<TableKey>)
An expression, this’ll only have the enum TableKey::Expression.
Name
A simple name.
Trait Implementations§
Source§impl Clone for TableAccessKey
impl Clone for TableAccessKey
Source§fn clone(&self) -> TableAccessKey
fn clone(&self) -> TableAccessKey
Returns a copy 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 TableAccessKey
impl Debug for TableAccessKey
Source§impl GetRange for TableAccessKey
impl GetRange for TableAccessKey
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 Hash for TableAccessKey
impl Hash for TableAccessKey
Source§impl Ord for TableAccessKey
impl Ord for TableAccessKey
Source§fn cmp(&self, other: &TableAccessKey) -> Ordering
fn cmp(&self, other: &TableAccessKey) -> 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<TableAccessKey> for TableKey
impl Parse<TableAccessKey> for TableKey
Source§fn parse(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
) -> Option<TableAccessKey>
fn parse( token: Token, lexer: &mut Lexer<'_>, errors: &mut Vec<ParseError>, ) -> Option<TableAccessKey>
Try parsing the current item, starting from the passed token.
Source§impl Parse for TableAccessKey
impl Parse for TableAccessKey
Source§impl ParseWithArgs<bool> for TableAccessKey
impl ParseWithArgs<bool> for TableAccessKey
Source§fn parse_with(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
accept_expression: bool,
) -> Option<Self>
fn parse_with( token: Token, lexer: &mut Lexer<'_>, errors: &mut Vec<ParseError>, accept_expression: bool, ) -> Option<Self>
Try parsing the current item, starting from the passed token with the
passed arguments.
Source§impl PartialEq for TableAccessKey
impl PartialEq for TableAccessKey
Source§impl PartialOrd for TableAccessKey
impl PartialOrd for TableAccessKey
Source§impl Print for TableAccessKey
impl Print for TableAccessKey
impl Eq for TableAccessKey
impl StructuralPartialEq for TableAccessKey
Auto Trait Implementations§
impl Freeze for TableAccessKey
impl RefUnwindSafe for TableAccessKey
impl !Send for TableAccessKey
impl !Sync for TableAccessKey
impl Unpin for TableAccessKey
impl UnwindSafe for TableAccessKey
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