Enum minivec::LayoutErr[][src]

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.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.