pub struct StructFieldDecl {
pub name: String,
pub ty: StructFieldType,
}Expand description
One field of a type Foo { ... } declaration. A field named _ is padding:
it advances the running offset by its byte size without naming a slot.
Fields§
§name: String§ty: StructFieldTypeImplementations§
Source§impl StructFieldDecl
impl StructFieldDecl
pub fn is_padding(&self) -> bool
Trait Implementations§
Source§impl Clone for StructFieldDecl
impl Clone for StructFieldDecl
Auto Trait Implementations§
impl Freeze for StructFieldDecl
impl RefUnwindSafe for StructFieldDecl
impl Send for StructFieldDecl
impl Sync for StructFieldDecl
impl Unpin for StructFieldDecl
impl UnsafeUnpin for StructFieldDecl
impl UnwindSafe for StructFieldDecl
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