pub struct LazySplayTree<M: Monoid, A: Act<M>> { /* private fields */ }Expand description
遅延スプレー木
Implementations§
Source§impl<M: Monoid + Clone, A: Act<M> + Clone> LazySplayTree<M, A>
impl<M: Monoid + Clone, A: Act<M> + Clone> LazySplayTree<M, A>
Sourcepub fn singleton(monoid: M, act: A, value: M::Element) -> Self
pub fn singleton(monoid: M, act: A, value: M::Element) -> Self
値valueをもつノード一つのみからなるSplayTree<M>を生成
Sourcepub fn merge_right(&mut self, right: Self)
pub fn merge_right(&mut self, right: Self)
右側にスプレーツリーを結合する
Sourcepub fn merge_left(&mut self, left: Self)
pub fn merge_left(&mut self, left: Self)
左側にスプレーツリーを結合する
Sourcepub fn push_first(&mut self, value: M::Element)
pub fn push_first(&mut self, value: M::Element)
先頭に値を追加する
Auto Trait Implementations§
impl<M, A> !Freeze for LazySplayTree<M, A>
impl<M, A> !RefUnwindSafe for LazySplayTree<M, A>
impl<M, A> !Send for LazySplayTree<M, A>
impl<M, A> !Sync for LazySplayTree<M, A>
impl<M, A> Unpin for LazySplayTree<M, A>
impl<M, A> UnwindSafe for LazySplayTree<M, A>where
M: UnwindSafe,
A: UnwindSafe,
<M as Set>::Element: RefUnwindSafe,
<A as Act<M>>::Element: RefUnwindSafe,
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