pub struct LazySegtree<F>where
F: MapMonoid,{ /* private fields */ }
Implementations§
Source§impl<F: MapMonoid> LazySegtree<F>
impl<F: MapMonoid> LazySegtree<F>
pub fn set(&mut self, p: usize, x: <F::M as Monoid>::S)
pub fn get(&mut self, p: usize) -> <F::M as Monoid>::S
pub fn prod<R>(&mut self, range: R) -> <F::M as Monoid>::Swhere
R: RangeBounds<usize>,
pub fn all_prod(&self) -> <F::M as Monoid>::S
pub fn apply(&mut self, p: usize, f: F::F)
pub fn apply_range<R>(&mut self, range: R, f: F::F)where
R: RangeBounds<usize>,
pub fn max_right<G>(&mut self, l: usize, g: G) -> usize
pub fn min_left<G>(&mut self, r: usize, g: G) -> usize
Trait Implementations§
Source§impl<F> Clone for LazySegtree<F>
impl<F> Clone for LazySegtree<F>
Source§fn clone(&self) -> LazySegtree<F>
fn clone(&self) -> LazySegtree<F>
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<F> Debug for LazySegtree<F>
impl<F> Debug for LazySegtree<F>
Source§impl<F: MapMonoid> Default for LazySegtree<F>
impl<F: MapMonoid> Default for LazySegtree<F>
Auto Trait Implementations§
impl<F> Freeze for LazySegtree<F>
impl<F> RefUnwindSafe for LazySegtree<F>
impl<F> Send for LazySegtree<F>
impl<F> Sync for LazySegtree<F>
impl<F> Unpin for LazySegtree<F>
impl<F> UnwindSafe for LazySegtree<F>
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