pub struct FieldDecl {
pub specifiers: DeclSpecifiers,
pub name: Option<Ident>,
pub ty: Type,
pub bit_width: Option<Expr>,
pub attrs: Attributes,
pub range: SourceRange,
}Expand description
One member of a struct or union.
Fields§
§specifiers: DeclSpecifiersThe member’s declaration specifiers.
name: Option<Ident>The member name; absent for an anonymous bit-field or an anonymous struct/union member.
ty: TypeThe member’s type.
bit_width: Option<Expr>The bit-field width, if any.
attrs: AttributesWhat __attribute__((…)) on this member asked for.
range: SourceRangeWhere the member was written.
Trait Implementations§
impl StructuralPartialEq for FieldDecl
Auto Trait Implementations§
impl Freeze for FieldDecl
impl RefUnwindSafe for FieldDecl
impl Send for FieldDecl
impl Sync for FieldDecl
impl Unpin for FieldDecl
impl UnsafeUnpin for FieldDecl
impl UnwindSafe for FieldDecl
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