Trait allocator_api::NonNullCast
[−]
[src]
pub trait NonNullCast { fn cast_<U>(self) -> NonNull<U>; fn as_opaque_(self) -> NonNull<Opaque>; }
Casting extensions to the NonNull
type
This trait adds the cast and as_opaque methods to the NonNull
type.
As of writing, as_opaque is still unstable, and cast only available
starting from rust 1.27.
Due to the conflict in name of the methods and to PR #48552 not being merged until rust 1.26, they are suffixed with an underscore.