pub enum ArrayError {
Show 15 variants
BroadcastShapeMismatch,
ConcatenateShapeMismatch,
ShapeMustMatchValuesLength,
ShapesMustMatch {
shape_1: Vec<usize>,
shape_2: Vec<usize>,
},
SqueezeShapeOfAxisMustBeOne,
AxisOutOfBounds,
OutOfBounds {
value: &'static str,
},
ParameterError {
param: &'static str,
message: &'static str,
},
UnsupportedDimension {
supported: Vec<usize>,
},
MustBeUnique {
value: String,
},
MustBeEqual {
value1: String,
value2: String,
},
MustBeAtLeast {
value1: String,
value2: String,
},
MustBeOneOf {
value1: String,
value2: String,
},
NotImplemented,
SingularMatrix,
}
Expand description
ArrayError
definition - errors that can be returned by the library
Variants§
BroadcastShapeMismatch
Shape of two arrays must match for broadcast operation
ConcatenateShapeMismatch
Shape of two arrays must match for concatenate operation
ShapeMustMatchValuesLength
Shape mismatching the length of values to build the array from
ShapesMustMatch
Shape of two arrays must match
SqueezeShapeOfAxisMustBeOne
Axis to perform squeeze on must have a size of one
AxisOutOfBounds
axis
is out of array’s bounds
OutOfBounds
value
is out of bounds
ParameterError
Input parameter doesn’t match the criteria
UnsupportedDimension
Not defined for given dimension of input array
MustBeUnique
Collection must contain unique elements
MustBeEqual
Values must be equal
MustBeAtLeast
Values must be at least
MustBeOneOf
Values must be one of
NotImplemented
Function is not implemented
SingularMatrix
Matrix is singular
Trait Implementations§
Source§impl Clone for ArrayError
impl Clone for ArrayError
Source§fn clone(&self) -> ArrayError
fn clone(&self) -> ArrayError
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§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()
Source§impl PartialEq for ArrayError
impl PartialEq for ArrayError
Source§impl PartialOrd for ArrayError
impl PartialOrd for ArrayError
impl Eq for ArrayError
impl StructuralPartialEq for ArrayError
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