[][src]Struct ndhistogram::Item

pub struct Item<T, V> {
    pub index: usize,
    pub bin: T,
    pub value: V,
}

Struct to be returned when iterating over Histograms bins.

Fields

index: usize

Bin number

bin: T

Bin interval. See Axis::BinInterval.

value: V

Bin value.

Implementations

impl<T, V> Item<T, V>[src]

pub fn new(index: usize, bin: T, value: V) -> Self[src]

Factory method to create Item.

Trait Implementations

impl<T: Clone, V: Clone> Clone for Item<T, V>[src]

impl<T: Copy, V: Copy> Copy for Item<T, V>[src]

impl<T: Debug, V: Debug> Debug for Item<T, V>[src]

impl<T: Default, V: Default> Default for Item<T, V>[src]

impl<'de, T, V> Deserialize<'de> for Item<T, V> where
    T: Deserialize<'de>,
    V: Deserialize<'de>, 
[src]

impl<T: Eq, V: Eq> Eq for Item<T, V>[src]

impl<T: Hash, V: Hash> Hash for Item<T, V>[src]

impl<T: Ord, V: Ord> Ord for Item<T, V>[src]

impl<T: PartialEq, V: PartialEq> PartialEq<Item<T, V>> for Item<T, V>[src]

impl<T: PartialOrd, V: PartialOrd> PartialOrd<Item<T, V>> for Item<T, V>[src]

impl<T, V> Serialize for Item<T, V> where
    T: Serialize,
    V: Serialize
[src]

impl<T, V> StructuralEq for Item<T, V>[src]

impl<T, V> StructuralPartialEq for Item<T, V>[src]

Auto Trait Implementations

impl<T, V> RefUnwindSafe for Item<T, V> where
    T: RefUnwindSafe,
    V: RefUnwindSafe
[src]

impl<T, V> Send for Item<T, V> where
    T: Send,
    V: Send
[src]

impl<T, V> Sync for Item<T, V> where
    T: Sync,
    V: Sync
[src]

impl<T, V> Unpin for Item<T, V> where
    T: Unpin,
    V: Unpin
[src]

impl<T, V> UnwindSafe for Item<T, V> where
    T: UnwindSafe,
    V: 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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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, 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.