#[repr(u8)]pub enum LayoutErr {
ZeroAlign = 0,
NonPowerOfTwoAlign = 1,
Overflow = 2,
}Expand description
An error that can occur when computing a layout.
Variants§
ZeroAlign = 0
The alignment is zero.
NonPowerOfTwoAlign = 1
The alignment is not a power of two.
Overflow = 2
The requested size was greater than
USIZE_MAX_NO_HIGH_BIT when rounded up to the
nearest multiple of the requested alignment.
Trait Implementations§
Source§impl Error for LayoutErr
Available on crate feature std only.
impl Error for LayoutErr
Available on crate feature
std only.1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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