pub struct StructDef {
pub attributes: Vec<Attribute>,
pub name: Ident,
pub base: Option<TypeRef>,
pub fields: Vec<VarDecl>,
pub methods: Vec<Function>,
pub nested: Vec<Item>,
pub span: Span,
}Expand description
struct Name : Base { members };
Fields§
§attributes: Vec<Attribute>Attributes after struct, for example [raypayload].
name: IdentThe struct’s name.
base: Option<TypeRef>The base struct after :.
fields: Vec<VarDecl>The fields, as declarations.
methods: Vec<Function>The member functions, with their bodies.
nested: Vec<Item>The structs, enums and typedefs declared inside, in source order.
span: SpanThe whole definition.
Trait Implementations§
impl StructuralPartialEq for StructDef
Auto Trait Implementations§
impl Forget for StructDef
impl Freeze for StructDefwhere
*const u8 is !null: Freeze,
PhantomData<Attribute>: Freeze,
PhantomData<u8>: Freeze,
PhantomData<TypeArg>: Freeze,
PhantomData<VarDecl>: Freeze,
PhantomData<Function>: Freeze,
PhantomData<Item>: Freeze,
impl Move for StructDef
impl RefUnwindSafe for StructDef
impl Send for StructDef
impl Sync for StructDef
impl Unpin for StructDef
impl UnsafeUnpin for StructDefwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<TypeArg>: UnsafeUnpin,
PhantomData<VarDecl>: UnsafeUnpin,
PhantomData<Function>: UnsafeUnpin,
PhantomData<Item>: UnsafeUnpin,
impl UnwindSafe for StructDefwhere
RawVecInner: UnwindSafe,
BoxRaw<Expr>: UnwindSafe,
BoxRaw<TypeRef>: UnwindSafe,
BoxRaw<Stmt>: UnwindSafe,
BoxRaw<StructDef>: UnwindSafe,
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