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§
Provided Methods§
fn eq(&self, _: &dyn UnsafePtr) -> bool
sourcefn ref_sub_one(&self)
 
fn ref_sub_one(&self)
for gc
sourcefn mark_dirty(&self, _: &mut VecDeque<i32, Global>)
 
fn mark_dirty(&self, _: &mut VecDeque<i32, Global>)
for gc
sourcefn can_make_cycle(&self) -> bool
 
fn can_make_cycle(&self) -> bool
Returns true if the user data can make reference cycles, so that GC can
sourcefn break_cycle(&self)
 
fn break_cycle(&self)
If can_make_cycle returns true, implement this to break cycle