pub struct AddSum<S: Monoid + Additive>(pub S);Expand description
Range Add Range Sum 用のモノイド作用
Tuple Fields§
§0: STrait Implementations§
Source§impl<M, A> Act<M> for AddSum<A>
impl<M, A> Act<M> for AddSum<A>
impl<S: Copy + Monoid + Additive> Copy for AddSum<S>
impl<S: Eq + Monoid + Additive> Eq for AddSum<S>
impl<S: Monoid + Additive> StructuralPartialEq for AddSum<S>
Auto Trait Implementations§
impl<S> Freeze for AddSum<S>where
S: Freeze,
impl<S> RefUnwindSafe for AddSum<S>where
S: RefUnwindSafe,
impl<S> Send for AddSum<S>where
S: Send,
impl<S> Sync for AddSum<S>where
S: Sync,
impl<S> Unpin for AddSum<S>where
S: Unpin,
impl<S> UnwindSafe for AddSum<S>where
S: 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