pub struct ClassSpec {
pub kind: ObjKind,
pub name: String,
pub capability: Capability,
pub superclass: Option<&'static Class>,
pub field_names: Vec<Sym>,
pub methods: FxHashMap<Sym, u32>,
pub vtable: Vec<u32>,
pub variant_tag: Option<u32>,
pub enum_id: Option<u32>,
}Expand description
Fields of a class under construction. register_class assigns the id and the GC vtable.
Fields§
§kind: ObjKind§name: String§capability: Capability§superclass: Option<&'static Class>§field_names: Vec<Sym>§methods: FxHashMap<Sym, u32>§vtable: Vec<u32>§variant_tag: Option<u32>§enum_id: Option<u32>Implementations§
Auto Trait Implementations§
impl Freeze for ClassSpec
impl RefUnwindSafe for ClassSpec
impl Send for ClassSpec
impl Sync for ClassSpec
impl Unpin for ClassSpec
impl UnsafeUnpin for ClassSpec
impl UnwindSafe for ClassSpec
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