pub struct Class {
pub gc: GcVTable,
pub kind: ObjKind,
pub id: u32,
pub name: Box<str>,
pub capability: Capability,
pub superclass: Option<&'static Class>,
pub field_names: Vec<Sym>,
pub vtable: Vec<u32>,
pub variant_tag: Option<u32>,
pub enum_id: Option<u32>,
/* private fields */
}Fields§
§gc: GcVTable§kind: ObjKind§id: u32§name: Box<str>§capability: Capability§superclass: Option<&'static Class>§field_names: Vec<Sym>§vtable: Vec<u32>Virtual method table (function ids), for overridable methods of user classes.
variant_tag: Option<u32>For enum variant classes: the variant’s index within its enum.
enum_id: Option<u32>For enum variant classes: the enum’s id (shared by all its variants).
Implementations§
Auto Trait Implementations§
impl !Freeze for Class
impl RefUnwindSafe for Class
impl Send for Class
impl Sync for Class
impl Unpin for Class
impl UnsafeUnpin for Class
impl UnwindSafe for Class
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