Enum ndarray_stats::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
sourceimpl 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
sourceimpl Clone for MultiInputError
impl Clone for MultiInputError
sourcefn clone(&self) -> MultiInputError
fn clone(&self) -> MultiInputError
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 MultiInputError
impl Debug for MultiInputError
sourceimpl Display for MultiInputError
impl Display for MultiInputError
sourceimpl Error for MultiInputError
impl Error for MultiInputError
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<EmptyInput> for MultiInputError
impl From<EmptyInput> for MultiInputError
sourcefn from(_: EmptyInput) -> Self
fn from(_: EmptyInput) -> Self
Converts to this type from the input type.
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<MultiInputError> for MultiInputError
impl PartialEq<MultiInputError> for MultiInputError
sourcefn 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 ==
. Read more
impl StructuralPartialEq for MultiInputError
Auto Trait Implementations
impl RefUnwindSafe for MultiInputError
impl Send for MultiInputError
impl Sync for MultiInputError
impl Unpin for MultiInputError
impl UnwindSafe for MultiInputError
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