[−][src]Enum ndhistogram::axis::BinInterval
BinInterval represents a single bin interval in a 1D axis.
Variants
The underflow bin covers all values from (-inf, end]. The interval excludes end.
The overflow bin covers all values from [start, inf). The interval includes start.
A finite bin interval from [start, end). The interval includes start but excludes end.
Implementations
impl<T> BinInterval<T>
[src]
pub fn underflow(end: T) -> Self
[src]
Factory method to create new underflow bin interval.
pub fn overflow(start: T) -> Self
[src]
Factory method to create new overflow bin interval.
pub fn new(start: T, end: T) -> Self
[src]
Factory method to create new finite bin interval.
impl<T: Copy> BinInterval<T>
[src]
pub fn start(&self) -> Option<T>
[src]
Get start of the interval if it exists for this interval variant.
The underflow bin returns None.
pub fn end(&self) -> Option<T>
[src]
Get end of the interval if it exists for this interval variant.
The overflow bin returns None.
Trait Implementations
impl<T: Clone> Clone for BinInterval<T>
[src]
pub fn clone(&self) -> BinInterval<T>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T: Debug> Debug for BinInterval<T>
[src]
impl<T: Display> Display for BinInterval<T>
[src]
impl<T> From<Range<T>> for BinInterval<T>
[src]
impl<T> From<RangeFrom<T>> for BinInterval<T>
[src]
impl<T> From<RangeTo<T>> for BinInterval<T>
[src]
impl<T: PartialEq> PartialEq<BinInterval<T>> for BinInterval<T>
[src]
pub fn eq(&self, other: &BinInterval<T>) -> bool
[src]
pub fn ne(&self, other: &BinInterval<T>) -> bool
[src]
impl<T> StructuralPartialEq for BinInterval<T>
[src]
Auto Trait Implementations
impl<T> RefUnwindSafe for BinInterval<T> where
T: RefUnwindSafe,
[src]
T: RefUnwindSafe,
impl<T> Send for BinInterval<T> where
T: Send,
[src]
T: Send,
impl<T> Sync for BinInterval<T> where
T: Sync,
[src]
T: Sync,
impl<T> Unpin for BinInterval<T> where
T: Unpin,
[src]
T: Unpin,
impl<T> UnwindSafe for BinInterval<T> where
T: UnwindSafe,
[src]
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,