# 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]

####

`pub fn null() -> *const Self`

[src]

🔬 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]

🔬 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`.

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)