pub struct ModuleDef {
pub id: ModuleDefId,
pub name: String,
pub ctor: Option<String>,
pub span: SrcSpan,
pub sites: Vec<ParamSiteId>,
}Expand description
A Rust type that constructs parameters, i.e. a module definition.
Fields§
§id: ModuleDefId§name: StringType name as written, e.g. SelfAttention.
ctor: Option<String>Constructor followed to discover this def’s contents, e.g. SelfAttention::new.
span: SrcSpan§sites: Vec<ParamSiteId>Trait Implementations§
Auto Trait Implementations§
impl Freeze for ModuleDef
impl RefUnwindSafe for ModuleDef
impl Send for ModuleDef
impl Sync for ModuleDef
impl Unpin for ModuleDef
impl UnsafeUnpin for ModuleDef
impl UnwindSafe for ModuleDef
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