pub enum QuantileError {
EmptyInput,
InvalidPolicy {
field: &'static str,
reason: &'static str,
},
QuantileOutOfRange {
quantile: f64,
},
NonFinite {
index: Option<usize>,
value: f64,
},
IncompatiblePolicy,
MemoryLimit {
required_entries: usize,
max_entries: usize,
},
CountOverflow,
}Expand description
Failure while configuring, updating, merging, or querying a quantile sketch.
Variants§
EmptyInput
No observations were supplied.
InvalidPolicy
A policy field was invalid.
QuantileOutOfRange
A quantile was outside 0.0..=1.0 or not finite.
NonFinite
An observation was not finite.
Fields
IncompatiblePolicy
Two sketches had different error or memory policies.
MemoryLimit
The configured entry bound could not preserve the requested rank error.
Fields
CountOverflow
The represented observation count exceeded u64.
Trait Implementations§
Source§impl Clone for QuantileError
impl Clone for QuantileError
Source§fn clone(&self) -> QuantileError
fn clone(&self) -> QuantileError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 QuantileError
impl Debug for QuantileError
Source§impl Display for QuantileError
impl Display for QuantileError
Source§impl Error for QuantileError
impl Error for QuantileError
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 PartialEq for QuantileError
impl PartialEq for QuantileError
impl StructuralPartialEq for QuantileError
Auto Trait Implementations§
impl Freeze for QuantileError
impl RefUnwindSafe for QuantileError
impl Send for QuantileError
impl Sync for QuantileError
impl Unpin for QuantileError
impl UnsafeUnpin for QuantileError
impl UnwindSafe for QuantileError
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