pub enum BinInterval<T> {
Underflow {
end: T,
},
Overflow {
start: T,
},
Bin {
start: T,
end: T,
},
}
Expand description
BinInterval represents a single bin interval in a 1D axis.
Variants§
Underflow
The underflow bin covers all values from (-inf, end]. The interval excludes end.
Fields
§
end: T
End of the interval.
Overflow
The overflow bin covers all values from [start, inf). The interval includes start.
Fields
§
start: T
Start of the interval.
Bin
A finite bin interval from [start, end). The interval includes start but excludes end.
Implementations§
Source§impl<T> BinInterval<T>
impl<T> BinInterval<T>
Source§impl<T: Copy> BinInterval<T>
impl<T: Copy> BinInterval<T>
Trait Implementations§
Source§impl<T: Clone> Clone for BinInterval<T>
impl<T: Clone> Clone for BinInterval<T>
Source§fn clone(&self) -> BinInterval<T>
fn clone(&self) -> BinInterval<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 BinInterval<T>
impl<T: Debug> Debug for BinInterval<T>
Source§impl<T: Display> Display for BinInterval<T>
impl<T: Display> Display for BinInterval<T>
Source§impl<T> From<Range<T>> for BinInterval<T>
impl<T> From<Range<T>> for BinInterval<T>
Source§impl<T> From<RangeFrom<T>> for BinInterval<T>
impl<T> From<RangeFrom<T>> for BinInterval<T>
Source§impl<T> From<RangeTo<T>> for BinInterval<T>
impl<T> From<RangeTo<T>> for BinInterval<T>
Source§impl<T: Hash> Hash for BinInterval<T>
impl<T: Hash> Hash for BinInterval<T>
Source§impl<T: LowerExp> LowerExp for BinInterval<T>
impl<T: LowerExp> LowerExp for BinInterval<T>
Source§impl<T: Ord> Ord for BinInterval<T>
impl<T: Ord> Ord for BinInterval<T>
Source§fn cmp(&self, other: &BinInterval<T>) -> Ordering
fn cmp(&self, other: &BinInterval<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 BinInterval<T>
impl<T: PartialEq> PartialEq for BinInterval<T>
Source§impl<T: PartialOrd> PartialOrd for BinInterval<T>
impl<T: PartialOrd> PartialOrd for BinInterval<T>
Source§impl<T> TryFrom<BinInterval<T>> for Range<T>
impl<T> TryFrom<BinInterval<T>> for Range<T>
Source§impl<T> TryFrom<BinInterval<T>> for RangeFrom<T>
impl<T> TryFrom<BinInterval<T>> for RangeFrom<T>
Source§impl<T> TryFrom<BinInterval<T>> for RangeTo<T>
impl<T> TryFrom<BinInterval<T>> for RangeTo<T>
Source§impl<T: UpperExp> UpperExp for BinInterval<T>
impl<T: UpperExp> UpperExp for BinInterval<T>
impl<T: Copy> Copy for BinInterval<T>
impl<T: Eq> Eq for BinInterval<T>
impl<T> StructuralPartialEq for BinInterval<T>
Auto Trait Implementations§
impl<T> Freeze for BinInterval<T>where
T: Freeze,
impl<T> RefUnwindSafe for BinInterval<T>where
T: RefUnwindSafe,
impl<T> Send for BinInterval<T>where
T: Send,
impl<T> Sync for BinInterval<T>where
T: Sync,
impl<T> Unpin for BinInterval<T>where
T: Unpin,
impl<T> UnwindSafe for BinInterval<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