pub trait Alignment {
const VALUE: PowerOfTwo;
}Expand description
Type-level memory-alignment witness for AlignedRead. Each implementor is
a unit type carrying a single PowerOfTwo value.
Custom readers can define their own marker (e.g. A4096) by adding a unit
type and an impl Alignment with the desired VALUE.
Required Associated Constants§
Sourceconst VALUE: PowerOfTwo
const VALUE: PowerOfTwo
The alignment, in bytes.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.