Struct e_ring::Ring [−][src]
pub struct Ring<T, const N: usize> { /* fields omitted */ }Expand description
Append only data structure, replace oldest element when reach maximum capacity of N elements
Implementations
pub fn rescaled_iter(
&self,
current: Range<T>,
desired: Range<T>
) -> RescaleIterator<'_, T, N>[src]
pub fn rescaled_iter(
&self,
current: Range<T>,
desired: Range<T>
) -> RescaleIterator<'_, T, N>[src]Returns an iterator over the Ring on which values are rescaled according to the desired
range
Append an element to the Ring, if there are already N elements, it replaces the oldest.