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

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

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.

Loading content...

Implementors

impl InitializableFromZeroed for str[src]

impl<T> InitializableFromZeroed for T where
    T: Default
[src]

impl<T> InitializableFromZeroed for [T] where
    T: ZeroSafe
[src]

Loading content...