pub trait Raw<T>: Sized {
// Required methods
unsafe fn from_raw(raw: *mut T) -> Self;
fn as_raw(&self) -> *mut T;
// Provided method
fn into_raw(self) -> *mut T { ... }
}
Expand description
Trait for types that own a C allocated pointer and are represented by the data pointed to.
Required Methods§
Provided Methods§
Object Safety§
This trait is not object safe.