[][src]Enum ndhistogram::axis::BinInterval

pub enum BinInterval<T> {
    Underflow {
        end: T,
    },
    Overflow {
        start: T,
    },
    Bin {
        start: T,
        end: T,
    },
}

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 of Underflow

end: T

End of the interval.

Overflow

The overflow bin covers all values from [start, inf). The interval includes start.

Fields of Overflow

start: T

Start of the interval.

Bin

A finite bin interval from [start, end). The interval includes start but excludes end.

Fields of Bin

start: T

Start of the interval

end: T

End of the interval

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]

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]

impl<T> StructuralPartialEq for BinInterval<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for BinInterval<T> where
    T: RefUnwindSafe
[src]

impl<T> Send for BinInterval<T> where
    T: Send
[src]

impl<T> Sync for BinInterval<T> where
    T: Sync
[src]

impl<T> Unpin for BinInterval<T> where
    T: Unpin
[src]

impl<T> UnwindSafe for BinInterval<T> where
    T: UnwindSafe
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.