pub enum SingleValueBinInterval<T> {
Overflow,
Bin {
value: T,
},
}
Expand description
A bin interval that contains only a single value.
Similar to BinInterval, except each interval only covers a single value. The only exception is the Overflow bin which may be used to mean “all other bin values”.
Variants§
Overflow
An interval to represent “other values”.
Bin
An interval including only one value.
Fields
§
value: T
The value included in this interval.
Implementations§
Source§impl<T> SingleValueBinInterval<T>
impl<T> SingleValueBinInterval<T>
Trait Implementations§
Source§impl<T: Clone> Clone for SingleValueBinInterval<T>
impl<T: Clone> Clone for SingleValueBinInterval<T>
Source§fn clone(&self) -> SingleValueBinInterval<T>
fn clone(&self) -> SingleValueBinInterval<T>
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<T: Debug> Debug for SingleValueBinInterval<T>
impl<T: Debug> Debug for SingleValueBinInterval<T>
Source§impl<T: Display> Display for SingleValueBinInterval<T>
impl<T: Display> Display for SingleValueBinInterval<T>
Source§impl<T: Hash> Hash for SingleValueBinInterval<T>
impl<T: Hash> Hash for SingleValueBinInterval<T>
Source§impl<T: Ord> Ord for SingleValueBinInterval<T>
impl<T: Ord> Ord for SingleValueBinInterval<T>
Source§fn cmp(&self, other: &SingleValueBinInterval<T>) -> Ordering
fn cmp(&self, other: &SingleValueBinInterval<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq> PartialEq for SingleValueBinInterval<T>
impl<T: PartialEq> PartialEq for SingleValueBinInterval<T>
Source§impl<T: PartialOrd> PartialOrd for SingleValueBinInterval<T>
impl<T: PartialOrd> PartialOrd for SingleValueBinInterval<T>
impl<T: Copy> Copy for SingleValueBinInterval<T>
impl<T: Eq> Eq for SingleValueBinInterval<T>
impl<T> StructuralPartialEq for SingleValueBinInterval<T>
Auto Trait Implementations§
impl<T> Freeze for SingleValueBinInterval<T>where
T: Freeze,
impl<T> RefUnwindSafe for SingleValueBinInterval<T>where
T: RefUnwindSafe,
impl<T> Send for SingleValueBinInterval<T>where
T: Send,
impl<T> Sync for SingleValueBinInterval<T>where
T: Sync,
impl<T> Unpin for SingleValueBinInterval<T>where
T: Unpin,
impl<T> UnwindSafe for SingleValueBinInterval<T>where
T: UnwindSafe,
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