Struct ndarray_stats::errors::ShapeMismatch
source · [−]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>
second_shape: Vec<usize>
Trait Implementations
sourceimpl Clone for ShapeMismatch
impl Clone for ShapeMismatch
sourcefn clone(&self) -> ShapeMismatch
fn clone(&self) -> ShapeMismatch
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for ShapeMismatch
impl Debug for ShapeMismatch
sourceimpl Display for ShapeMismatch
impl Display for ShapeMismatch
sourceimpl Error for ShapeMismatch
impl Error for ShapeMismatch
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
sourceimpl From<ShapeMismatch> for MultiInputError
impl From<ShapeMismatch> for MultiInputError
sourcefn from(err: ShapeMismatch) -> Self
fn from(err: ShapeMismatch) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<ShapeMismatch> for ShapeMismatch
impl PartialEq<ShapeMismatch> for ShapeMismatch
sourcefn 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 ==
. Read more
impl StructuralPartialEq for ShapeMismatch
Auto Trait Implementations
impl RefUnwindSafe for ShapeMismatch
impl Send for ShapeMismatch
impl Sync for ShapeMismatch
impl Unpin for ShapeMismatch
impl UnwindSafe for ShapeMismatch
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more