pub struct Field<'a> {
pub docs: Vec<DocComment<'a>>,
pub id: Ident<'a>,
pub ty: Type<'a>,
}
Expand description
Represents a record field in the AST.
Fields§
§docs: Vec<DocComment<'a>>
The docs for the field.
id: Ident<'a>
The identifier of the field.
ty: Type<'a>
The type of the field.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnwindSafe for Field<'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