pub struct UpdateFold<T>(pub Last<T>);Expand description
Range Update Range ~~~ 用のモノイド作用
act_nは時間計算量が$O(\log n)$なので、
遅延セグメント木に載せる場合は、更新・取得はともに$O(\log^2 n)$の計算量になることに注意。
Tuple Fields§
§0: Last<T>Trait Implementations§
Source§impl<T, M> Act<M> for UpdateFold<T>
impl<T, M> Act<M> for UpdateFold<T>
Source§impl<T: Clone> Clone for UpdateFold<T>
impl<T: Clone> Clone for UpdateFold<T>
Source§fn clone(&self) -> UpdateFold<T>
fn clone(&self) -> UpdateFold<T>
Returns a duplicate 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<T: Debug> Debug for UpdateFold<T>
impl<T: Debug> Debug for UpdateFold<T>
Source§impl<T: Default> Default for UpdateFold<T>
impl<T: Default> Default for UpdateFold<T>
Source§fn default() -> UpdateFold<T>
fn default() -> UpdateFold<T>
Returns the “default value” for a type. Read more
Source§impl<T: Hash> Hash for UpdateFold<T>
impl<T: Hash> Hash for UpdateFold<T>
Source§impl<T: PartialEq> PartialEq for UpdateFold<T>
impl<T: PartialEq> PartialEq for UpdateFold<T>
impl<T: Copy> Copy for UpdateFold<T>
impl<T: Eq> Eq for UpdateFold<T>
impl<T> StructuralPartialEq for UpdateFold<T>
Auto Trait Implementations§
impl<T> Freeze for UpdateFold<T>
impl<T> RefUnwindSafe for UpdateFold<T>where
T: RefUnwindSafe,
impl<T> Send for UpdateFold<T>where
T: Send,
impl<T> Sync for UpdateFold<T>where
T: Sync,
impl<T> Unpin for UpdateFold<T>where
T: Unpin,
impl<T> UnwindSafe for UpdateFold<T>where
T: 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