Trait r3::hunk::HunkIniter

source ·
pub trait HunkIniter<T> {
    const NEEDS_INIT: bool;

    // Required method
    fn init(dest: &mut MaybeUninit<T>);
}
Expand description

Implemented on DefaultInitTag and ZeroInitTag when T can be initialized in this way.

Required Associated Constants§

source

const NEEDS_INIT: bool

A flag indicating whether Self::init should be called for initialization.

Required Methods§

source

fn init(dest: &mut MaybeUninit<T>)

Initialize the specified memory region.

Implementors§

source§

impl<T> HunkIniter<T> for DefaultInitTagwhere T: Init,

source§

const NEEDS_INIT: bool = true

source§

impl<T> HunkIniter<T> for ZeroInitTag

source§

const NEEDS_INIT: bool = false