Trait 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>) { ... }
    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>)

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<(), Error>

Formats the value using the given formatter. Read more

Implementors§