pub struct LinkCutTree<M: Monoid> { /* private fields */ }Expand description
Link-Cut Tree
動的に木の辺を追加・削除可能
Implementations§
Source§impl<M: Monoid + Commutative + Clone> LinkCutTree<M>
impl<M: Monoid + Commutative + Clone> LinkCutTree<M>
Sourcepub fn new_commutative(monoid: M, n: usize) -> Self
pub fn new_commutative(monoid: M, n: usize) -> Self
可換モノイドを持てるLinkCutTree<M>を生成する。
Source§impl<M: Monoid + Clone> LinkCutTree<M>
impl<M: Monoid + Clone> LinkCutTree<M>
Sourcepub fn new_non_commutative(monoid: M, n: usize) -> Self
pub fn new_non_commutative(monoid: M, n: usize) -> Self
非可換なモノイドを持てるLinkCutTree<M>を生成する。
Auto Trait Implementations§
impl<M> Freeze for LinkCutTree<M>where
M: Freeze,
impl<M> RefUnwindSafe for LinkCutTree<M>
impl<M> !Send for LinkCutTree<M>
impl<M> !Sync for LinkCutTree<M>
impl<M> Unpin for LinkCutTree<M>
impl<M> UnwindSafe for LinkCutTree<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