pub trait Allocation<T> {
// Required method
fn ptr(&self) -> *mut UnsafeCell<MaybeUninit<T>>;
}Expand description
Required Methods§
Sourcefn ptr(&self) -> *mut UnsafeCell<MaybeUninit<T>>
fn ptr(&self) -> *mut UnsafeCell<MaybeUninit<T>>
Base pointer of the allocated region. Points to items contiguous,
aligned cells (see Allocator::allocate).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".