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.