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§
Implementations§
source§impl 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§
source§impl Clone for BinsBuildError
impl Clone for BinsBuildError
source§fn clone(&self) -> BinsBuildError
fn clone(&self) -> BinsBuildError
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 BinsBuildError
impl Debug for BinsBuildError
source§impl Display for BinsBuildError
impl Display for BinsBuildError
source§impl Error for BinsBuildError
impl Error for BinsBuildError
source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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
source§impl From<EmptyInput> for BinsBuildError
impl From<EmptyInput> for BinsBuildError
source§fn from(_: EmptyInput) -> Self
fn from(_: EmptyInput) -> Self
Converts to this type from the input type.
source§impl From<MinMaxError> for BinsBuildError
impl From<MinMaxError> for BinsBuildError
source§fn from(err: MinMaxError) -> BinsBuildError
fn from(err: MinMaxError) -> BinsBuildError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BinsBuildError
impl RefUnwindSafe for BinsBuildError
impl Send for BinsBuildError
impl Sync for BinsBuildError
impl Unpin for BinsBuildError
impl UnwindSafe for BinsBuildError
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