pub struct ExplicitBuckets {
    pub bounds: Option<Vec<f64>>,
}Expand description
Describing buckets with arbitrary user-provided width.
This type is not used in any activity, and only used as part of another schema.
Fields§
§bounds: Option<Vec<f64>>‘bound’ is a list of strictly increasing boundaries between buckets. Note that a list of length N-1 defines N buckets because of fenceposting. See comments on bucket_options for details. The i’th finite bucket covers the interval [bound[i-1], bound[i]) where i ranges from 1 to bound_size() - 1. Note that there are no finite buckets at all if ‘bound’ only contains a single element; in that special case the single bound defines the boundary between the underflow and overflow buckets. bucket number lower bound upper bound i == 0 (underflow) -inf bound[i] 0 < i < bound_size() bound[i-1] bound[i] i == bound_size() (overflow) bound[i-1] +inf
Trait Implementations§
Source§impl Clone for ExplicitBuckets
 
impl Clone for ExplicitBuckets
Source§fn clone(&self) -> ExplicitBuckets
 
fn clone(&self) -> ExplicitBuckets
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExplicitBuckets
 
impl Debug for ExplicitBuckets
Source§impl Default for ExplicitBuckets
 
impl Default for ExplicitBuckets
Source§fn default() -> ExplicitBuckets
 
fn default() -> ExplicitBuckets
Source§impl<'de> Deserialize<'de> for ExplicitBuckets
 
impl<'de> Deserialize<'de> for ExplicitBuckets
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
 
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
    __D: Deserializer<'de>,
Source§impl Serialize for ExplicitBuckets
 
impl Serialize for ExplicitBuckets
impl Part for ExplicitBuckets
Auto Trait Implementations§
impl Freeze for ExplicitBuckets
impl RefUnwindSafe for ExplicitBuckets
impl Send for ExplicitBuckets
impl Sync for ExplicitBuckets
impl Unpin for ExplicitBuckets
impl UnwindSafe for ExplicitBuckets
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> Instrument for T
 
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
 
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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