Enum ndarray_histogram::errors::MultiInputError
source · pub enum MultiInputError {
EmptyInput,
ShapeMismatch(ShapeMismatch),
}
Expand description
An error for methods that take multiple non-empty array inputs.
Variants§
EmptyInput
One or more of the arrays were empty.
ShapeMismatch(ShapeMismatch)
The arrays did not have the same shape.
Implementations§
source§impl MultiInputError
impl MultiInputError
sourcepub fn is_empty_input(&self) -> bool
pub fn is_empty_input(&self) -> bool
Returns whether self
is the EmptyInput
variant.
sourcepub fn is_shape_mismatch(&self) -> bool
pub fn is_shape_mismatch(&self) -> bool
Returns whether self
is the ShapeMismatch
variant.
Trait Implementations§
source§impl Clone for MultiInputError
impl Clone for MultiInputError
source§fn clone(&self) -> MultiInputError
fn clone(&self) -> MultiInputError
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 MultiInputError
impl Debug for MultiInputError
source§impl Display for MultiInputError
impl Display for MultiInputError
source§impl Error for MultiInputError
impl Error for MultiInputError
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 From<EmptyInput> for MultiInputError
impl From<EmptyInput> for MultiInputError
source§fn from(_: EmptyInput) -> Self
fn from(_: EmptyInput) -> Self
Converts to this type from the input type.
source§impl From<ShapeMismatch> for MultiInputError
impl From<ShapeMismatch> for MultiInputError
source§fn from(err: ShapeMismatch) -> Self
fn from(err: ShapeMismatch) -> Self
Converts to this type from the input type.
source§impl PartialEq<MultiInputError> for MultiInputError
impl PartialEq<MultiInputError> for MultiInputError
source§fn eq(&self, other: &MultiInputError) -> bool
fn eq(&self, other: &MultiInputError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.