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§
source§impl Clone for SubtractionError
impl Clone for SubtractionError
source§fn clone(&self) -> SubtractionError
fn clone(&self) -> SubtractionError
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 SubtractionError
impl Debug for SubtractionError
source§impl Display for SubtractionError
impl Display for SubtractionError
source§impl Error for SubtractionError
impl Error for SubtractionError
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 SubtractionError
impl PartialEq for SubtractionError
impl Copy for SubtractionError
impl Eq for SubtractionError
impl StructuralPartialEq for SubtractionError
Auto Trait Implementations§
impl Freeze for SubtractionError
impl RefUnwindSafe for SubtractionError
impl Send for SubtractionError
impl Sync for SubtractionError
impl Unpin for SubtractionError
impl UnwindSafe for SubtractionError
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
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
)