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 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 TableAccessKey
impl Debug for TableAccessKey
Source§impl GetRange for TableAccessKey
impl GetRange for TableAccessKey
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§impl Parse for TableAccessKey
impl Parse for TableAccessKey
Source§impl ParseWithArgs<bool> for TableAccessKey
impl ParseWithArgs<bool> for TableAccessKey
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
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<TableAccessKey> for TableKey
impl TryParse<TableAccessKey> for TableKey
Source§impl TryParse for TableAccessKey
impl TryParse 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