Trait HeapObject

Source
pub trait HeapObject: Trace + Debug {
    // Required methods
    fn from_untyped(untyped: &HeapItem) -> Option<&Self>;
    fn from_untyped_mut(untyped: &mut HeapItem) -> Option<&mut Self>;
    fn to_untyped(self) -> HeapItem;
}

Required Methods§

Source

fn from_untyped(untyped: &HeapItem) -> Option<&Self>

Source

fn from_untyped_mut(untyped: &mut HeapItem) -> Option<&mut Self>

Source

fn to_untyped(self) -> HeapItem

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§