Enum ndarray_stats::histogram::errors::BinsBuildError
source · [−]pub enum BinsBuildError {
EmptyInput,
Strategy,
// some variants omitted
}
Expand description
Error computing the set of histogram bins.
Variants
EmptyInput
The input array was empty.
Strategy
The strategy for computing appropriate bins failed.
Implementations
sourceimpl BinsBuildError
impl BinsBuildError
sourcepub fn is_empty_input(&self) -> bool
pub fn is_empty_input(&self) -> bool
Returns whether self
is the EmptyInput
variant.
sourcepub fn is_strategy(&self) -> bool
pub fn is_strategy(&self) -> bool
Returns whether self
is the Strategy
variant.
Trait Implementations
sourceimpl Clone for BinsBuildError
impl Clone for BinsBuildError
sourcefn clone(&self) -> BinsBuildError
fn clone(&self) -> BinsBuildError
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 BinsBuildError
impl Debug for BinsBuildError
sourceimpl Display for BinsBuildError
impl Display for BinsBuildError
sourceimpl Error for BinsBuildError
impl Error for BinsBuildError
sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
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
sourceimpl From<EmptyInput> for BinsBuildError
impl From<EmptyInput> for BinsBuildError
sourcefn from(_: EmptyInput) -> Self
fn from(_: EmptyInput) -> Self
Converts to this type from the input type.
sourceimpl From<MinMaxError> for BinsBuildError
impl From<MinMaxError> for BinsBuildError
sourcefn from(err: MinMaxError) -> BinsBuildError
fn from(err: MinMaxError) -> BinsBuildError
Converts to this type from the input type.
Auto Trait Implementations
impl RefUnwindSafe for BinsBuildError
impl Send for BinsBuildError
impl Sync for BinsBuildError
impl Unpin for BinsBuildError
impl UnwindSafe for BinsBuildError
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