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§
Auto Trait Implementations§
impl Freeze for LayoutErr
impl RefUnwindSafe for LayoutErr
impl Send for LayoutErr
impl Sync for LayoutErr
impl Unpin for LayoutErr
impl UnwindSafe for LayoutErr
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more