Trait go_engine::ffi::UnsafePtr

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

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

Required Methods§

source

fn as_any(&self) -> &(dyn Any + 'static)

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 VecDeque<i32, Global>)

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 + 'static

source§

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

Formats the value using the given formatter. Read more

Implementors§