Struct ndhistogram::Item
source · pub struct Item<T, V> {
pub index: usize,
pub bin: T,
pub value: V,
}
Expand description
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§
Trait Implementations§
source§impl<'de, T, V> Deserialize<'de> for Item<T, V>where
T: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, T, V> Deserialize<'de> for Item<T, V>where T: Deserialize<'de>, V: Deserialize<'de>,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl<T: Ord, V: Ord> Ord for Item<T, V>
impl<T: Ord, V: Ord> Ord for Item<T, V>
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, V: PartialEq> PartialEq<Item<T, V>> for Item<T, V>
impl<T: PartialEq, V: PartialEq> PartialEq<Item<T, V>> for Item<T, V>
source§impl<T: PartialOrd, V: PartialOrd> PartialOrd<Item<T, V>> for Item<T, V>
impl<T: PartialOrd, V: PartialOrd> PartialOrd<Item<T, V>> for Item<T, V>
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 moreimpl<T: Copy, V: Copy> Copy for Item<T, V>
impl<T: Eq, V: Eq> Eq for Item<T, V>
impl<T, V> StructuralEq for Item<T, V>
impl<T, V> StructuralPartialEq for Item<T, V>
Auto Trait Implementations§
impl<T, V> RefUnwindSafe for Item<T, V>where T: RefUnwindSafe, V: RefUnwindSafe,
impl<T, V> Send for Item<T, V>where T: Send, V: Send,
impl<T, V> Sync for Item<T, V>where T: Sync, V: Sync,
impl<T, V> Unpin for Item<T, V>where T: Unpin, V: Unpin,
impl<T, V> UnwindSafe for Item<T, V>where T: UnwindSafe, V: 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