pub struct UpdateFold<M: Monoid>(/* private fields */);
Expand description
Range Update Range ~~~ 用の代数的構造
convert
は時間計算量が$O(\log n)$なので、
遅延セグメント木に載せる場合は、更新・取得はともに$O(\log^2 n)$の計算量になることに注意。
Trait Implementations§
Source§impl<M> Action for UpdateFold<M>
impl<M> Action for UpdateFold<M>
Source§impl<M: Clone + Monoid> Clone for UpdateFold<M>
impl<M: Clone + Monoid> Clone for UpdateFold<M>
Source§fn clone(&self) -> UpdateFold<M>
fn clone(&self) -> UpdateFold<M>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<M: Default + Monoid> Default for UpdateFold<M>
impl<M: Default + Monoid> Default for UpdateFold<M>
Source§fn default() -> UpdateFold<M>
fn default() -> UpdateFold<M>
Returns the “default value” for a type. Read more
impl<M: Copy + Monoid> Copy for UpdateFold<M>
impl<M: Eq + Monoid> Eq for UpdateFold<M>
impl<M: Monoid> StructuralPartialEq for UpdateFold<M>
Auto Trait Implementations§
impl<M> Freeze for UpdateFold<M>
impl<M> RefUnwindSafe for UpdateFold<M>where
M: RefUnwindSafe,
impl<M> Send for UpdateFold<M>where
M: Send,
impl<M> Sync for UpdateFold<M>where
M: Sync,
impl<M> Unpin for UpdateFold<M>where
M: Unpin,
impl<M> UnwindSafe for UpdateFold<M>where
M: 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