pub struct Field {
pub doc: Doc,
pub type_: Type,
pub name: Ident,
pub dims: Vec<Expr>,
pub default: Option<Expr>,
pub is_static: bool,
pub is_constexpr: bool,
pub bits: Option<u16>,
}Expand description
A data member.
Fields§
§doc: DocDocumentation.
type_: TypeType.
name: IdentName.
dims: Vec<Expr>Array dimensions, outermost first.
default: Option<Expr>A default member initialiser.
is_static: boolstatic.
is_constexpr: boolconstexpr.
bits: Option<u16>A bitfield width.
Trait Implementations§
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