Enum ndarray_stats::errors::QuantileError
source · [−]pub enum QuantileError {
EmptyInput,
InvalidQuantile(N64),
}
Expand description
An error computing a quantile.
Variants
EmptyInput
The input was empty.
InvalidQuantile(N64)
The q
was not between 0.
and 1.
(inclusive).
Trait Implementations
sourceimpl Clone for QuantileError
impl Clone for QuantileError
sourcefn clone(&self) -> QuantileError
fn clone(&self) -> QuantileError
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 QuantileError
impl Debug for QuantileError
sourceimpl Display for QuantileError
impl Display for QuantileError
sourceimpl Error for QuantileError
impl Error for QuantileError
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 QuantileError
impl From<EmptyInput> for QuantileError
sourcefn from(_: EmptyInput) -> QuantileError
fn from(_: EmptyInput) -> QuantileError
Converts to this type from the input type.
sourceimpl PartialEq<QuantileError> for QuantileError
impl PartialEq<QuantileError> for QuantileError
sourcefn eq(&self, other: &QuantileError) -> bool
fn eq(&self, other: &QuantileError) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for QuantileError
impl StructuralEq for QuantileError
impl StructuralPartialEq for QuantileError
Auto Trait Implementations
impl RefUnwindSafe for QuantileError
impl Send for QuantileError
impl Sync for QuantileError
impl Unpin for QuantileError
impl UnwindSafe for QuantileError
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.