Trait BlockHeader

Source
pub trait BlockHeader: Default + Sized {
    // Required method
    unsafe fn ref_counter_update(&self, i: RefCounterUpdate) -> isize;

    // Provided method
    unsafe fn block<T: Object, D: Dealloc>(&mut self) -> &mut Block<T, D> { ... }
}

Required Methods§

Source

unsafe fn ref_counter_update(&self, i: RefCounterUpdate) -> isize

Provided Methods§

Source

unsafe fn block<T: Object, D: Dealloc>(&mut self) -> &mut Block<T, D>

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.

Implementations on Foreign Types§

Source§

impl BlockHeader for Cell<isize>

Source§

unsafe fn ref_counter_update(&self, val: RefCounterUpdate) -> isize

Source§

impl BlockHeader for AtomicIsize

Source§

unsafe fn ref_counter_update(&self, val: RefCounterUpdate) -> isize

Implementors§