Trait Collector

Source
pub trait Collector<T> {
    // Required method
    unsafe fn collect(&self, ptr: *mut T);
}

Required Methods§

Source

unsafe fn collect(&self, ptr: *mut T)

§Safety

This function has the same safety preconditions and semantics as ptr::drop_in_place. It must be safe to drop the value pointed to by ptr.

Implementors§