pub enum TableFieldValue {
ERROR,
Expression(Expression),
Type(TypeValue),
VariadicValues(Token),
}Expand description
A possible value for a table field.
Variants§
ERROR
This TableFieldValue had a syntax error.
Expression(Expression)
An expression, can be found in declarations of tables as variables
only.
Type(TypeValue)
A type, can be found in type definitions only.
VariadicValues(Token)
{...}Trait Implementations§
Source§impl Clone for TableFieldValue
impl Clone for TableFieldValue
Source§fn clone(&self) -> TableFieldValue
fn clone(&self) -> TableFieldValue
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 TableFieldValue
impl Debug for TableFieldValue
Source§impl Default for TableFieldValue
impl Default for TableFieldValue
Source§fn default() -> TableFieldValue
fn default() -> TableFieldValue
Returns the “default value” for a type. Read more
Source§impl GetRange for TableFieldValue
impl GetRange for TableFieldValue
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 TableFieldValue
impl Hash for TableFieldValue
Source§impl Ord for TableFieldValue
impl Ord for TableFieldValue
Source§fn cmp(&self, other: &TableFieldValue) -> Ordering
fn cmp(&self, other: &TableFieldValue) -> 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 ParseWithArgs<bool> for TableFieldValue
impl ParseWithArgs<bool> for TableFieldValue
Source§fn parse_with(
token: Token,
lexer: &mut Lexer<'_>,
errors: &mut Vec<ParseError>,
is_type: bool,
) -> Option<Self>
fn parse_with( token: Token, lexer: &mut Lexer<'_>, errors: &mut Vec<ParseError>, is_type: bool, ) -> Option<Self>
Try parsing the current item, starting from the passed token with the
passed arguments.
Source§impl PartialEq for TableFieldValue
impl PartialEq for TableFieldValue
Source§impl PartialOrd for TableFieldValue
impl PartialOrd for TableFieldValue
Source§impl Print for TableFieldValue
impl Print for TableFieldValue
impl Eq for TableFieldValue
impl StructuralPartialEq for TableFieldValue
Auto Trait Implementations§
impl Freeze for TableFieldValue
impl RefUnwindSafe for TableFieldValue
impl !Send for TableFieldValue
impl !Sync for TableFieldValue
impl Unpin for TableFieldValue
impl UnwindSafe for TableFieldValue
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