pub struct TableField {
pub key: Pointer<TableKey>,
pub equal_or_colon: Option<Token>,
pub value: Pointer<TableFieldValue>,
}Expand description
A struct representing one table field. It’ll always have a key
and a value that’s either a type or an
expression.
See table field values.
Fields§
§key: Pointer<TableKey>The key used to index field.
equal_or_colon: Option<Token>The = or : tokens, it’s = in variables and : in types.
value: Pointer<TableFieldValue>The value of this field. An expression in variables and a type in type definitions.
Trait Implementations§
Source§impl Clone for TableField
impl Clone for TableField
Source§fn clone(&self) -> TableField
fn clone(&self) -> TableField
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 TableField
impl Debug for TableField
Source§impl Default for TableField
impl Default for TableField
Source§fn default() -> TableField
fn default() -> TableField
Returns the “default value” for a type. Read more
Source§impl GetRange for TableField
impl GetRange for TableField
Source§impl Hash for TableField
impl Hash for TableField
Source§impl Ord for TableField
impl Ord for TableField
Source§fn cmp(&self, other: &TableField) -> Ordering
fn cmp(&self, other: &TableField) -> 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 PartialEq for TableField
impl PartialEq for TableField
Source§impl PartialOrd for TableField
impl PartialOrd for TableField
Source§impl Print for TableField
impl Print for TableField
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§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.impl Eq for TableField
impl StructuralPartialEq for TableField
Auto Trait Implementations§
impl Freeze for TableField
impl RefUnwindSafe for TableField
impl !Send for TableField
impl !Sync for TableField
impl Unpin for TableField
impl UnwindSafe for TableField
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