pub struct BucketRange {
pub start: i64,
pub end: i64,
pub bucket: usize,
}Expand description
A half-open value range [start, end) mapped to bucket bucket.
Ranges of one constraint should be non-overlapping; the same bucket may be used by several
(e.g. disjoint) ranges, or by ranges repeated across a period.
Fields§
§start: i64Inclusive lower bound.
end: i64Exclusive upper bound.
bucket: usizeBucket this range belongs to.
Implementations§
Trait Implementations§
Source§impl Clone for BucketRange
impl Clone for BucketRange
Source§fn clone(&self) -> BucketRange
fn clone(&self) -> BucketRange
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 moreimpl Copy for BucketRange
Source§impl Debug for BucketRange
impl Debug for BucketRange
impl Eq for BucketRange
Source§impl PartialEq for BucketRange
impl PartialEq for BucketRange
impl StructuralPartialEq for BucketRange
Auto Trait Implementations§
impl Freeze for BucketRange
impl RefUnwindSafe for BucketRange
impl Send for BucketRange
impl Sync for BucketRange
impl Unpin for BucketRange
impl UnsafeUnpin for BucketRange
impl UnwindSafe for BucketRange
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