pub enum ObjKind {
Show 16 variants
Immediate,
Instance,
Str,
BigInt,
List,
Dict,
Set,
Tuple,
Closure,
Cell,
StringBuilder,
Mutex,
Atomic,
Channel,
Thread,
Native,
}Expand description
Physical layout of a class’s instances.
Variants§
Immediate
Not a heap object (Int, Float, Bool, Nil).
Instance
Fixed fields inline after the header (user classes, enum variants, ranges).
Str
BigInt
List
Dict
Set
Tuple
Closure
Cell
StringBuilder
Mutex
Atomic
Channel
Thread
Native
Opaque native resource (files and the like).
Trait Implementations§
impl Copy for ObjKind
impl Eq for ObjKind
impl StructuralPartialEq for ObjKind
Auto Trait Implementations§
impl Freeze for ObjKind
impl RefUnwindSafe for ObjKind
impl Send for ObjKind
impl Sync for ObjKind
impl Unpin for ObjKind
impl UnsafeUnpin for ObjKind
impl UnwindSafe for ObjKind
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