Crate packed [−] [src]
A safe approach to using #[repr(packed)] data.
See nue_macros for the automagic #[packed] attribute.
Traits
| Aligned |
A trait for converting types with alignments greater than |
| Packed |
A marker trait indicating that a type is |
| Unaligned |
A marker trait indicating that a type has an alignment of |
Functions
| is_aligned_for |
Determines whether a pointer or reference is correctly aligned for type |
| is_aligned_for_slice |
Determines whether a slice is correctly aligned for type |
| size_of_slice |
Calculates the total byte size of a slice. |
Type Definitions
| Un |
A type alias that represents the unaligned type of |