pub struct StructDef {
pub name: String,
pub fields: Vec<FieldDef>,
pub doc: Option<String>,
pub generics: Vec<String>,
}Expand description
A complete struct definition in the IR.
Fields§
§name: StringThe struct name
fields: Vec<FieldDef>All fields in this struct
doc: Option<String>Documentation comment
generics: Vec<String>Generic type parameter names, e.g. ["T", "U"]
Trait Implementations§
impl StructuralPartialEq for StructDef
Auto Trait Implementations§
impl Freeze for StructDef
impl RefUnwindSafe for StructDef
impl Send for StructDef
impl Sync for StructDef
impl Unpin for StructDef
impl UnsafeUnpin for StructDef
impl UnwindSafe for StructDef
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