pub struct RecordField { /* private fields */ }Implementations§
Source§impl RecordField
impl RecordField
pub fn field_name(&self) -> &AtomToken
pub fn default_value(&self) -> Option<&Expr>
pub fn field_type(&self) -> Option<&Type>
Trait Implementations§
Source§impl Clone for RecordField
impl Clone for RecordField
Source§fn clone(&self) -> RecordField
fn clone(&self) -> RecordField
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 RecordField
impl Debug for RecordField
Source§impl Parse for RecordField
impl Parse for RecordField
Source§fn parse(ts: &mut TokenStream) -> Result<Self>
fn parse(ts: &mut TokenStream) -> Result<Self>
Parse an item from the given token stream.
Auto Trait Implementations§
impl Freeze for RecordField
impl RefUnwindSafe for RecordField
impl Send for RecordField
impl Sync for RecordField
impl Unpin for RecordField
impl UnwindSafe for RecordField
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