pub trait Collector<T> {
// Required method
unsafe fn collect(&self, ptr: *mut T);
}Required Methods§
Sourceunsafe fn collect(&self, ptr: *mut T)
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.