Trait go_vm::types::UnsafePtr

source ·
pub trait UnsafePtr {
    // Required method
    fn as_any(&self) -> &dyn Any;

    // Provided methods
    fn eq(&self, _: &dyn UnsafePtr) -> bool { ... }
    fn ref_sub_one(&self) { ... }
    fn mark_dirty(&self, _: &mut RCQueue) { ... }
    fn can_make_cycle(&self) -> bool { ... }
    fn break_cycle(&self) { ... }
}

Required Methods§

source

fn as_any(&self) -> &dyn Any

For downcasting

Provided Methods§

source

fn eq(&self, _: &dyn UnsafePtr) -> bool

source

fn ref_sub_one(&self)

for gc

source

fn mark_dirty(&self, _: &mut RCQueue)

for gc

source

fn can_make_cycle(&self) -> bool

Returns true if the user data can make reference cycles, so that GC can

source

fn break_cycle(&self)

If can_make_cycle returns true, implement this to break cycle

Trait Implementations§

source§

impl Debug for dyn UnsafePtr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementors§