[][src]Crate bytemuck

Re-exports

pub use allocation::*;

Modules

allocation

Stuff to boost things in the alloc crate.

Enums

PodCastError

The things that can go wrong when casting between Pod data forms.

Traits

Pod

Marker trait for "plain old data".

Zeroable

Trait for types that can be safely created with zeroed.

Functions

bytes_of

Re-interprets &T as &[u8].

bytes_of_mut

Re-interprets &mut T as &mut [u8].

cast

Cast T into U

cast_mut

Cast &mut T into &mut U.

cast_ref

Cast &T into &U.

cast_slice

Cast &[T] into &[U].

cast_slice_mut

Cast &mut [T] into &mut [U].

pod_align_to

As align_to, but safe because of the Pod bound.

pod_align_to_mut

As align_to_mut, but safe because of the Pod bound.

try_cast

Try to cast T into U.

try_cast_mut

Try to convert a &mut T into &mut U.

try_cast_ref

Try to convert a &T into &U.

try_cast_slice

Try to convert &[T] into &[U] (possibly with a change in length).

try_cast_slice_mut

Try to convert &mut [T] into mut [U] (possibly with a change in length).