Trait clear_on_drop::clear::InitializableFromZeroed
source · [−]pub trait InitializableFromZeroed {
unsafe fn initialize(place: *mut Self);
}
Expand description
A type that can be initialized to a valid value, after being set to all-bits-zero.
Required Methods
unsafe fn initialize(place: *mut Self)
unsafe fn initialize(place: *mut Self)
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.