pub struct Accumulate<M>where
M: Monoid,{ /* private fields */ }
Expand description
Accumlated data
Implementations§
Source§impl<M> Accumulate<M>where
M: Monoid,
impl<M> Accumulate<M>where
M: Monoid,
Sourcepub fn accumulate(&self, k: usize) -> M::T
pub fn accumulate(&self, k: usize) -> M::T
Return fold of [0, k)
Source§impl<M> Accumulate<M>where
M: Group,
impl<M> Accumulate<M>where
M: Group,
Sourcepub fn fold<R>(&self, range: R) -> M::Twhere
R: RangeBounds<usize>,
pub fn fold<R>(&self, range: R) -> M::Twhere
R: RangeBounds<usize>,
Return fold of range
Trait Implementations§
Source§impl<M> Debug for Accumulate<M>
impl<M> Debug for Accumulate<M>
Source§impl<M> FromIterator<<M as Magma>::T> for Accumulate<M>where
M: Monoid,
impl<M> FromIterator<<M as Magma>::T> for Accumulate<M>where
M: Monoid,
Auto Trait Implementations§
impl<M> Freeze for Accumulate<M>
impl<M> RefUnwindSafe for Accumulate<M>
impl<M> Send for Accumulate<M>
impl<M> Sync for Accumulate<M>
impl<M> Unpin for Accumulate<M>
impl<M> UnwindSafe for Accumulate<M>
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