Trait clear_on_drop::clear::InitializableFromZeroed [] [src]

pub trait InitializableFromZeroed {
    unsafe fn initialize(place: *mut Self);
}

A type that can be initialized to a valid value, after being set to all-bits-zero.

Required Methods

Called to initialize a place to a valid value, after it is set to all-bits-zero.

If all-bits-zero is a valid value for a place, this method can be left empty.

Implementors