pub struct DualSegmentTree<M: CommutativeMonoid> {
pub size: usize,
/* private fields */
}Expand description
双対セグ木
- 区間への作用
- 一点の取得
を行うセグメント木
Fields§
§size: usizeImplementations§
Source§impl<M: CommutativeMonoid> DualSegmentTree<M>
impl<M: CommutativeMonoid> DualSegmentTree<M>
Trait Implementations§
Auto Trait Implementations§
impl<M> Freeze for DualSegmentTree<M>
impl<M> RefUnwindSafe for DualSegmentTree<M>
impl<M> Send for DualSegmentTree<M>
impl<M> Sync for DualSegmentTree<M>
impl<M> Unpin for DualSegmentTree<M>
impl<M> UnwindSafe for DualSegmentTree<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more