Enum hdrhistogram::errors::SubtractionError
source · [−]pub enum SubtractionError {
SubtrahendValueExceedsMinuendRange,
SubtrahendCountExceedsMinuendCount,
}
Expand description
Errors that can occur when subtracting another histogram.
Variants
SubtrahendValueExceedsMinuendRange
The other histogram includes values that do not fit in this histogram’s range. Only possible when auto resize is disabled.
SubtrahendCountExceedsMinuendCount
The other histogram includes counts that are higher than the current count for a value, and counts cannot go negative. The subtraction may have been partially applied to some counts as this error is returned when the first impossible subtraction is detected.
Trait Implementations
sourceimpl Clone for SubtractionError
impl Clone for SubtractionError
sourcefn clone(&self) -> SubtractionError
fn clone(&self) -> SubtractionError
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 moresourceimpl Debug for SubtractionError
impl Debug for SubtractionError
sourceimpl Display for SubtractionError
impl Display for SubtractionError
sourceimpl Error for SubtractionError
impl Error for SubtractionError
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 PartialEq<SubtractionError> for SubtractionError
impl PartialEq<SubtractionError> for SubtractionError
sourcefn eq(&self, other: &SubtractionError) -> bool
fn eq(&self, other: &SubtractionError) -> bool
impl Copy for SubtractionError
impl Eq for SubtractionError
impl StructuralEq for SubtractionError
impl StructuralPartialEq for SubtractionError
Auto Trait Implementations
impl RefUnwindSafe for SubtractionError
impl Send for SubtractionError
impl Sync for SubtractionError
impl Unpin for SubtractionError
impl UnwindSafe for SubtractionError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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