Module pod
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
Podtype to a byte slice. -
bytes_of_mut
Cast a
Podtype to a mutable byte slice. -
bytes_of_slice
Cast a slice of a
Podtype to a byte slice. -
bytes_of_slice_mut
Cast a slice of a
Podtype to a mutable byte slice. -
from_bytes
Cast the head of a byte slice to a
Podtype. -
from_bytes_mut
Cast the head of a mutable byte slice to a
Podtype. -
slice_from_all_bytes
Cast all of a byte slice to a slice of a
Podtype. -
slice_from_all_bytes_mut
Cast all of a byte slice to a slice of a
Podtype. -
slice_from_bytes
Cast the head of a byte slice to a slice of a
Podtype. -
slice_from_bytes_mut
Cast the head of a mutable byte slice to a slice of a
Podtype.