intuicio_data

Trait Initialize

Source
pub trait Initialize: Sized {
    // Required method
    fn initialize() -> Self;

    // Provided method
    unsafe fn initialize_raw(data: *mut ()) { ... }
}

Required Methods§

Source

fn initialize() -> Self

Provided Methods§

Source

unsafe fn initialize_raw(data: *mut ())

§Safety

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Initialize for T
where T: Default,