Enum arr_rs::traits::errors::ArrayError   
source · pub enum ArrayError {
    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,
    },
    NotImplemented,
}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
NotImplemented
Function is not implemented
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)>
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<ArrayError> for ArrayError
 
impl PartialEq<ArrayError> for ArrayError
source§fn eq(&self, other: &ArrayError) -> bool
 
fn eq(&self, other: &ArrayError) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.source§impl PartialOrd<ArrayError> for ArrayError
 
impl PartialOrd<ArrayError> for ArrayError
source§fn partial_cmp(&self, other: &ArrayError) -> Option<Ordering>
 
fn partial_cmp(&self, other: &ArrayError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
 
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for 
self and other) and is used by the <=
operator. Read moreimpl StructuralPartialEq for ArrayError
Auto Trait Implementations§
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