[][src]Module core_extensions::utils

Miscelaneous utility functions

Functions

as_slice

Converts a reference to T to a slice of 1 T.

as_slice_mut

Converts a mutable reference to T to a mutable slice of 1 T.

impossible

Use this function to mark to the compiler that this branch is impossible.

transmute_ignore_size

Allows transmuting between types of different sizes.