#[repr(u8)]pub enum ObjTag {
Str = 0,
Table = 1,
Proto = 2,
Closure = 3,
Upvalue = 4,
Native = 5,
Coro = 6,
Userdata = 7,
}Expand description
Discriminator the GC stores in every GcHeader so a raw header pointer
can be cast back to the right object kind during tracing and sweeping.
Variants§
Trait Implementations§
impl Copy for ObjTag
impl Eq for ObjTag
impl StructuralPartialEq for ObjTag
Auto Trait Implementations§
impl Freeze for ObjTag
impl RefUnwindSafe for ObjTag
impl Send for ObjTag
impl Sync for ObjTag
impl Unpin for ObjTag
impl UnsafeUnpin for ObjTag
impl UnwindSafe for ObjTag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.