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<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: PartialOrd, V: PartialOrd> PartialOrd for Item<T, V>
impl<T: PartialOrd, V: PartialOrd> PartialOrd for Item<T, V>
impl<T: Copy, V: Copy> Copy for Item<T, V>
impl<T: Eq, V: Eq> Eq for Item<T, V>
impl<T, V> StructuralPartialEq for Item<T, V>
Auto Trait Implementations§
impl<T, V> Freeze for Item<T, V>
impl<T, V> RefUnwindSafe for Item<T, V>where
T: RefUnwindSafe,
V: RefUnwindSafe,
impl<T, V> Send for Item<T, V>
impl<T, V> Sync for Item<T, V>
impl<T, V> Unpin for Item<T, V>
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