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
Source§fn clone(&self) -> StructFieldDecl
fn clone(&self) -> StructFieldDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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