Foreign Type core::alloc::Opaque [−][src]
extern {
pub type Opaque;
}🔬 This is a nightly-only experimental API. (allocator_api #32838)
the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector
An opaque, unsized type. Used for pointers to allocated memory.
This type can only be used behind a pointer like *mut Opaque or ptr::NonNull<Opaque>.
Such pointers are similar to C’s void* type.
Methods
impl Opaque[src]
impl Opaquepub fn null() -> *const Self[src]
pub fn null() -> *const Self🔬 This is a nightly-only experimental API. (allocator_api #32838)
the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector
Similar to std::ptr::null, which requires T: Sized.
pub fn null_mut() -> *mut Self[src]
pub fn null_mut() -> *mut Self🔬 This is a nightly-only experimental API. (allocator_api #32838)
the precise API and guarantees it provides may be tweaked slightly, especially to possibly take into account the types being stored to make room for a future tracing garbage collector
Similar to std::ptr::null_mut, which requires T: Sized.