pub enum AlignedBoxError {
TooManyElements,
OutOfMemory,
ZeroAlloc,
InvalidAlign,
}Expand description
Error type for custom errors of AlignedBox.
Variants§
TooManyElements
Too many elements. The requested size exceeds the maximum size for a slice.
OutOfMemory
Memory allocation failed. This is likely caused by an out of memory situation.
ZeroAlloc
Zero byte allocation are currently not supported by AlignedBox.
InvalidAlign
The alignment provided is not a power of 2
Trait Implementations§
Source§impl Debug for AlignedBoxError
impl Debug for AlignedBoxError
Source§impl Display for AlignedBoxError
impl Display for AlignedBoxError
Source§impl Error for AlignedBoxError
Available on crate feature std only.
impl Error for AlignedBoxError
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()
Auto Trait Implementations§
impl Freeze for AlignedBoxError
impl RefUnwindSafe for AlignedBoxError
impl Send for AlignedBoxError
impl Sync for AlignedBoxError
impl Unpin for AlignedBoxError
impl UnwindSafe for AlignedBoxError
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