pub struct Field {
pub specs: DeclSpecsId,
pub declarator: Option<DeclaratorId>,
pub bits: Option<ExprId>,
pub attrs: AttrList,
pub span: Span,
}Expand description
One member of a struct or a union.
Fields§
§specs: DeclSpecsIdThe specifiers, shared by the members declared together.
declarator: Option<DeclaratorId>The declarator, absent for an anonymous struct or union member and for an unnamed bit-field.
bits: Option<ExprId>The width, for a bit-field.
attrs: AttrListAttributes on this member.
span: SpanThe whole member.
Trait Implementations§
impl Copy for Field
impl Eq for Field
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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