[−][src]Struct ndhistogram::VecHistogram
A Histogram that stores its values in a Vec.
See ndhistogram for examples of its use.
Implementations
impl<A: Axes, V: Default + Clone> VecHistogram<A, V>
[src]
pub fn new(axes: A) -> VecHistogram<A, V>
[src]
Trait Implementations
impl<A: Clone, V: Clone> Clone for VecHistogram<A, V>
[src]
pub fn clone(&self) -> VecHistogram<A, V>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A: Debug, V: Debug> Debug for VecHistogram<A, V>
[src]
impl<A: Axes, V> Display for VecHistogram<A, V>
[src]
impl<A: Axes, V> Histogram<A, V> for VecHistogram<A, V>
[src]
pub fn value(&self, coordinate: &A::Coordinate) -> Option<&V>
[src]
pub fn axes(&self) -> &A
[src]
pub fn value_at_index(&self, index: usize) -> Option<&V>
[src]
pub fn values<'a>(&'a self) -> Box<dyn Iterator<Item = &'a V> + 'a>
[src]
pub fn iter<'a>(
&'a self
) -> Box<dyn Iterator<Item = Item<A::BinInterval, &'a V>> + 'a>
[src]
&'a self
) -> Box<dyn Iterator<Item = Item<A::BinInterval, &'a V>> + 'a>
pub fn value_at_index_mut(&mut self, index: usize) -> Option<&mut V>
[src]
pub fn values_mut(&mut self) -> Box<dyn Iterator<Item = &'_ mut V> + '_>
[src]
pub fn iter_mut(
&mut self
) -> Box<dyn Iterator<Item = Item<<A as Axis>::BinInterval, &'_ mut V>> + '_>
[src]
&mut self
) -> Box<dyn Iterator<Item = Item<<A as Axis>::BinInterval, &'_ mut V>> + '_>
pub fn value_mut(&mut self, coordinate: &A::Coordinate) -> Option<&mut V>
[src]
pub fn fill(&mut self, coordinate: &A::Coordinate) where
V: Fill,
[src]
V: Fill,
pub fn fill_weight<W>(&mut self, coordinate: &A::Coordinate, weight: W) where
V: FillWeight<W>,
[src]
V: FillWeight<W>,
impl<'a, A: Axes, V> IntoIterator for &'a VecHistogram<A, V>
[src]
type Item = Item<A::BinInterval, &'a V>
The type of the elements being iterated over.
type IntoIter = Box<dyn Iterator<Item = Item<<A as Axis>::BinInterval, &'a V>> + 'a>
Which kind of iterator are we turning this into?
pub fn into_iter(self) -> Self::IntoIter
[src]
impl<'a, A: Axes, V: 'a> IntoIterator for &'a mut VecHistogram<A, V>
[src]
Auto Trait Implementations
impl<A, V> RefUnwindSafe for VecHistogram<A, V> where
A: RefUnwindSafe,
V: RefUnwindSafe,
[src]
A: RefUnwindSafe,
V: RefUnwindSafe,
impl<A, V> Send for VecHistogram<A, V> where
A: Send,
V: Send,
[src]
A: Send,
V: Send,
impl<A, V> Sync for VecHistogram<A, V> where
A: Sync,
V: Sync,
[src]
A: Sync,
V: Sync,
impl<A, V> Unpin for VecHistogram<A, V> where
A: Unpin,
V: Unpin,
[src]
A: Unpin,
V: Unpin,
impl<A, V> UnwindSafe for VecHistogram<A, V> where
A: UnwindSafe,
V: UnwindSafe,
[src]
A: UnwindSafe,
V: 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>,