pub enum PercentileLadderOutcome {
Ok(Vec<f64>),
SubFailure(PercentileOutcome),
PointsNotSorted,
MonotonicityViolated {
points: Vec<f64>,
values: Vec<f64>,
},
}Expand description
Outcome of computing a ladder of percentiles (monotonicity-aware).
Variants§
Ok(Vec<f64>)
All percentiles computed; monotonically non-decreasing as p increases.
SubFailure(PercentileOutcome)
One of the sub-computations failed — carries the first failing outcome.
PointsNotSorted
Percentile points not strictly increasing (e.g., [95, 50]).
MonotonicityViolated
Percentiles computed but monotonicity p99 >= p95 >= p50 violated — bug signal.
Trait Implementations§
Source§impl Clone for PercentileLadderOutcome
impl Clone for PercentileLadderOutcome
Source§fn clone(&self) -> PercentileLadderOutcome
fn clone(&self) -> PercentileLadderOutcome
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 PercentileLadderOutcome
impl Debug for PercentileLadderOutcome
Source§impl PartialEq for PercentileLadderOutcome
impl PartialEq for PercentileLadderOutcome
impl StructuralPartialEq for PercentileLadderOutcome
Auto Trait Implementations§
impl Freeze for PercentileLadderOutcome
impl RefUnwindSafe for PercentileLadderOutcome
impl Send for PercentileLadderOutcome
impl Sync for PercentileLadderOutcome
impl Unpin for PercentileLadderOutcome
impl UnsafeUnpin for PercentileLadderOutcome
impl UnwindSafe for PercentileLadderOutcome
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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