pub struct Percentile { /* private fields */ }Expand description
A labeled percentile.
This represents a floating-point value from 0 to 100, with a string label to be used for displaying the given percentile.
Implementations§
Source§impl Percentile
impl Percentile
Sourcepub fn label(&self) -> &str
pub fn label(&self) -> &str
Gets the standardized label for this percentile value.
This follows the convention of pXXX, where xxx represents the percentage. For example,
for the 99th percentile, you would get p99. For the 99.9th percentile, you would get p999.
Sourcepub fn percentile(&self) -> f64
pub fn percentile(&self) -> f64
Gets the actual percentile value.
Sourcepub fn as_quantile(&self) -> f64
pub fn as_quantile(&self) -> f64
Gets the percentile value as a quantile.
Trait Implementations§
Source§impl Clone for Percentile
impl Clone for Percentile
Source§fn clone(&self) -> Percentile
fn clone(&self) -> Percentile
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 moreSource§impl Debug for Percentile
impl Debug for Percentile
Source§impl From<f64> for Percentile
impl From<f64> for Percentile
Source§impl Hash for Percentile
impl Hash for Percentile
Source§impl PartialEq for Percentile
impl PartialEq for Percentile
impl Eq for Percentile
Auto Trait Implementations§
impl Freeze for Percentile
impl RefUnwindSafe for Percentile
impl Send for Percentile
impl Sync for Percentile
impl Unpin for Percentile
impl UnwindSafe for Percentile
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