pub enum ArrayCreationError {
AllocationError(String),
LayoutError(LayoutError),
}Expand description
An error that can occur when creating an Array
Variants§
AllocationError(String)
Occurs when the allocation fails
LayoutError(LayoutError)
Occurs on alloc::LayoutError
Trait Implementations§
Source§impl Debug for ArrayCreationError
impl Debug for ArrayCreationError
Source§impl Display for ArrayCreationError
impl Display for ArrayCreationError
Source§impl Error for ArrayCreationError
impl Error for ArrayCreationError
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()
Source§impl From<LayoutError> for ArrayCreationError
impl From<LayoutError> for ArrayCreationError
Source§fn from(source: LayoutError) -> Self
fn from(source: LayoutError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ArrayCreationError
impl RefUnwindSafe for ArrayCreationError
impl Send for ArrayCreationError
impl Sync for ArrayCreationError
impl Unpin for ArrayCreationError
impl UnsafeUnpin for ArrayCreationError
impl UnwindSafe for ArrayCreationError
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