Struct ndarray_histogram::errors::ShapeMismatch
source · pub struct ShapeMismatch {
pub first_shape: Vec<usize>,
pub second_shape: Vec<usize>,
}
Expand description
An error used by methods and functions that take two arrays as argument and
expect them to have exactly the same shape
(e.g. ShapeMismatch
is raised when a.shape() == b.shape()
evaluates to False
).
Fields§
§first_shape: Vec<usize>
Shape of first argument.
second_shape: Vec<usize>
Shape of second argument.
Trait Implementations§
source§impl Clone for ShapeMismatch
impl Clone for ShapeMismatch
source§fn clone(&self) -> ShapeMismatch
fn clone(&self) -> ShapeMismatch
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 ShapeMismatch
impl Debug for ShapeMismatch
source§impl Display for ShapeMismatch
impl Display for ShapeMismatch
source§impl Error for ShapeMismatch
impl Error for ShapeMismatch
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<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<ShapeMismatch> for ShapeMismatch
impl PartialEq<ShapeMismatch> for ShapeMismatch
source§fn eq(&self, other: &ShapeMismatch) -> bool
fn eq(&self, other: &ShapeMismatch) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.