pub struct FenwickTree<G: AbelianGroup> { /* private fields */ }
Expand description
可換群の点更新・区間取得($O(\log n)$, $O(\log n)$)ができる。
Implementations§
Source§impl<G: AbelianGroup + Clone> FenwickTree<G>
impl<G: AbelianGroup + Clone> FenwickTree<G>
Sourcepub fn new(size: usize) -> Self
pub fn new(size: usize) -> Self
長さsize
、可換群group
からFenwickTree<G>
を生成する。
Trait Implementations§
Source§impl<G: Clone + AbelianGroup> Clone for FenwickTree<G>
impl<G: Clone + AbelianGroup> Clone for FenwickTree<G>
Source§fn clone(&self) -> FenwickTree<G>
fn clone(&self) -> FenwickTree<G>
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<G: Default + AbelianGroup> Default for FenwickTree<G>
impl<G: Default + AbelianGroup> Default for FenwickTree<G>
Source§fn default() -> FenwickTree<G>
fn default() -> FenwickTree<G>
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl<G> Freeze for FenwickTree<G>
impl<G> RefUnwindSafe for FenwickTree<G>where
G: RefUnwindSafe,
impl<G> Send for FenwickTree<G>where
G: Send,
impl<G> Sync for FenwickTree<G>where
G: Sync,
impl<G> Unpin for FenwickTree<G>where
G: Unpin,
impl<G> UnwindSafe for FenwickTree<G>where
G: 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