pub enum ArrayError {
ContentMismatch,
InvalidDimensions,
}
Expand description
Error returned when creating arrays.
Variants§
ContentMismatch
Variant array does not match outer type.
InvalidDimensions
Variant array dimensions multiplied together does not equal the actual array length.
Trait Implementations§
Source§impl Debug for ArrayError
impl Debug for ArrayError
Source§impl Display for ArrayError
impl Display for ArrayError
Source§impl Error for ArrayError
impl Error for ArrayError
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 ArrayError
impl RefUnwindSafe for ArrayError
impl Send for ArrayError
impl Sync for ArrayError
impl Unpin for ArrayError
impl UnwindSafe for ArrayError
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