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 an
Option<&mut T>
into a possibly-null*mut T
. - option_as_ptr ๐Convert an
Option<&T>
into a possibly-null*const T
.