pub enum LayoutErr {
AlignmentTooSmall,
AlignmentNotDivisibleByTwo,
}Expand description
LayoutErr is the error type returned by the alignment-based associated functions for MiniVec
Variants§
AlignmentTooSmall
AlignmentTooSmall is returned when the user-supplied alignment fails to meet the base minimum alignment
requirements for the backing allocation of the MiniVec.
The minimum alignment requirement is core::mem::align_of::<*const ()>().
AlignmentNotDivisibleByTwo
AlignmentNotDivisibleByTwo is returned when the user-supplied alignment fails to meet the requirement of being
a power of two.