Struct ds::VecSegtree
source · pub struct VecSegtree<M>where
M: Monoid,{ /* private fields */ }
Implementations§
source§impl<M> VecSegtree<M>where
M: Monoid,
impl<M> VecSegtree<M>where
M: Monoid,
pub fn fold(&self, range: impl UsizeBounds) -> <M as BinaryOp>::Set
pub fn peek_mut(&mut self, i: usize) -> PeekMutTmp<'_, M>
pub fn fold_bisect_from<F>( &self, l: usize, pred: F, ) -> (usize, <M as BinaryOp>::Set)
pub fn fold_bisect_to<F>( &self, r: usize, pred: F, ) -> (usize, <M as BinaryOp>::Set)
Trait Implementations§
source§impl<M> Clone for VecSegtree<M>
impl<M> Clone for VecSegtree<M>
source§fn clone(&self) -> VecSegtree<M>
fn clone(&self) -> VecSegtree<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> FromIterator<<M as BinaryOp>::Set> for VecSegtree<M>
impl<M> FromIterator<<M as BinaryOp>::Set> for VecSegtree<M>
source§fn from_iter<I>(iter: I) -> VecSegtree<M>
fn from_iter<I>(iter: I) -> VecSegtree<M>
Creates a value from an iterator. Read more
Auto Trait Implementations§
impl<M> Freeze for VecSegtree<M>where
M: Freeze,
impl<M> RefUnwindSafe for VecSegtree<M>
impl<M> Send for VecSegtree<M>
impl<M> Sync for VecSegtree<M>
impl<M> Unpin for VecSegtree<M>
impl<M> UnwindSafe for VecSegtree<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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)