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§
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)>
Returns 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 for MultiInputError
impl PartialEq for MultiInputError
impl StructuralPartialEq for MultiInputError
Auto Trait Implementations§
impl Freeze for MultiInputError
impl RefUnwindSafe for MultiInputError
impl Send for MultiInputError
impl Sync for MultiInputError
impl Unpin for MultiInputError
impl UnwindSafe for MultiInputError
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more