Module ptr

Source
Expand description

Const equivalents of raw pointer and NonNull methods.

§Removed in 0.3.0

These functions were removed in 0.3.0 because there is an equivalent const fn in the standard library:

  • deref: raw pointers can be dereferenced since Rust 1.58.0

  • deref_mut: Rust 1.83.0 allows dereferencing mutable pointers.

Modules§

nonnull
Const equivalents of NonNull methods.

Functions§

as_mutrust_1_83
Const equivalent of <*const>::as_mut
as_ref
Const equivalent of <*const>::as_ref
is_nullDeprecated
Const equivalent of <*const T>::is_null