Skip to main content

Module pod

Module pod 

Source
Expand description

Tools for converting file format structures to and from bytes.

This module should be replaced once rust provides safe transmutes.

Traits§

Pod
A trait for types that can safely be converted from and to byte slices.

Functions§

bytes_of
Cast a Pod type to a byte slice.
bytes_of_mut
Cast a Pod type to a mutable byte slice.
bytes_of_slice
Cast a slice of a Pod type to a byte slice.
bytes_of_slice_mut
Cast a slice of a Pod type to a mutable byte slice.
from_bytes
Cast the head of a byte slice to a Pod type.
from_bytes_mut
Cast the head of a mutable byte slice to a Pod type.
slice_from_all_bytes
Cast all of a byte slice to a slice of a Pod type.
slice_from_all_bytes_mut
Cast all of a byte slice to a slice of a Pod type.
slice_from_bytes
Cast the head of a byte slice to a slice of a Pod type.
slice_from_bytes_mut
Cast the head of a mutable byte slice to a slice of a Pod type.