#[repr(u8)]pub enum LayoutErr {
Align(AlignErr),
ExceedsMax,
}Expand description
An error that can occur when computing a layout.
Variants§
Align(AlignErr)
The alignment was invalid.
ExceedsMax
The requested size was greater than
USIZE_MAX_NO_HIGH_BIT when
rounded up to the nearest multiple of the requested alignment.
Trait Implementations§
impl Copy for LayoutErr
impl Eq for LayoutErr
impl StructuralPartialEq for LayoutErr
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