pub trait Initialize: Sized {
// Required method
fn initialize() -> Self;
// Provided method
unsafe fn initialize_raw(data: *mut ()) { ... }
}
Required Methods§
fn initialize() -> Self
Provided Methods§
Sourceunsafe fn initialize_raw(data: *mut ())
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.