Enum StatisticsError
pub enum StatisticsError {
EmptyInput,
InsufficientData {
needed: usize,
actual: usize,
},
TooManyValues {
actual: usize,
},
}Expand description
Errors returned by statistics helpers when the input cannot support the requested summary.
Variants§
EmptyInput
The input slice was empty.
InsufficientData
The input slice does not contain enough values for the requested operation.
TooManyValues
The input slice is too large to convert its length into an exact f64 count.
Trait Implementations§
§impl Clone for StatisticsError
impl Clone for StatisticsError
§fn clone(&self) -> StatisticsError
fn clone(&self) -> StatisticsError
Returns a duplicate 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 more§impl Debug for StatisticsError
impl Debug for StatisticsError
§impl Display for StatisticsError
impl Display for StatisticsError
§impl Error for StatisticsError
impl Error for StatisticsError
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()
§impl PartialEq for StatisticsError
impl PartialEq for StatisticsError
impl Eq for StatisticsError
impl StructuralPartialEq for StatisticsError
Auto Trait Implementations§
impl Freeze for StatisticsError
impl RefUnwindSafe for StatisticsError
impl Send for StatisticsError
impl Sync for StatisticsError
impl Unpin for StatisticsError
impl UnsafeUnpin for StatisticsError
impl UnwindSafe for StatisticsError
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