Module gazebo::cast[][src]

Cast between types with no conversion.

Most of these operations are inherently unsafe, but provided as strongly-typed wrappers to reduce the chance of typos ending up with even more unsafe functions. If you use the result in incorrect ways, it will cause undefined behaviour.

Functions

ptr

Undefined behaviour if the argument does not satisfy the alignment of type To.

ptr_lifetime
ptr_mut

Undefined behaviour if the argument does not satisfy the alignment of type To.

ptr_to_usize
usize_to_ptr

Undefined behaviour if the argument is zero, or does not satisfy the alignment of type T.