pub struct TableField<'a> {
pub key: Option<(TableKey<'a>, TokenReference<'a>)>,
pub value: Box<Expr<'a>>,
pub separator: Option<TokenReference<'a>>,
}
Expand description
A table field.
Fields§
§key: Option<(TableKey<'a>, TokenReference<'a>)>
An explicit table key and a reference to the Symbol::Assign
token.
value: Box<Expr<'a>>
The value stored in the table.
separator: Option<TokenReference<'a>>
A Symbol::Comma
or Symbol::Semicolon
that may follow the field.
Trait Implementations§
Source§impl<'a> AstDescend<'a> for TableField<'a>
impl<'a> AstDescend<'a> for TableField<'a>
fn descend_mut<T: VisitorMut<'a>>(&mut self, visitor: &mut T)
Source§impl<'a> Clone for TableField<'a>
impl<'a> Clone for TableField<'a>
Source§fn clone(&self) -> TableField<'a>
fn clone(&self) -> TableField<'a>
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<'a> Debug for TableField<'a>
impl<'a> Debug for TableField<'a>
Source§impl Display for TableField<'_>
impl Display for TableField<'_>
Auto Trait Implementations§
impl<'a> Freeze for TableField<'a>
impl<'a> RefUnwindSafe for TableField<'a>
impl<'a> Send for TableField<'a>
impl<'a> Sync for TableField<'a>
impl<'a> Unpin for TableField<'a>
impl<'a> UnwindSafe for TableField<'a>
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