Enum ndhistogram::axis::BinInterval
source · 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
Fields
§
end: T
End of the interval.
The underflow bin covers all values from (-inf, end]. The interval excludes end.
Overflow
Fields
§
start: T
Start of the interval.
The overflow bin covers all values from [start, inf). The interval includes start.
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<BinInterval<T>> for BinInterval<T>
impl<T: PartialEq> PartialEq<BinInterval<T>> for BinInterval<T>
source§fn eq(&self, other: &BinInterval<T>) -> bool
fn eq(&self, other: &BinInterval<T>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<T: PartialOrd> PartialOrd<BinInterval<T>> for BinInterval<T>
impl<T: PartialOrd> PartialOrd<BinInterval<T>> for BinInterval<T>
source§fn partial_cmp(&self, other: &BinInterval<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &BinInterval<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§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> StructuralEq for BinInterval<T>
impl<T> StructuralPartialEq for BinInterval<T>
Auto Trait Implementations§
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