Expand description
Miscellaneous minor utilities.
Macrosยง
- default_
union ๐Create a union value containing a default value in one of its arms.
Functionsยง
- as_
mut_ ๐ptr Convert a&mut T
into a*mut T
without using anas
. - as_ptr ๐Convert a
&T
into a*const T
without using anas
. - check_
raw_ ๐pointer Convert a*mut c_void
to a*mut T
, checking that it is not null, misaligned, or pointing to a region of memory that wraps around the address space. - option_
as_ ๐mut_ ptr Convert anOption<&mut T>
into a possibly-null*mut T
. - option_
as_ ๐ptr Convert anOption<&T>
into a possibly-null*const T
.