pub struct SplayTree<M: Monoid> { /* private fields */ }
Expand description
スプレーツリー
Implementations§
Source§impl<M: Monoid + Clone> SplayTree<M>
impl<M: Monoid + Clone> 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)
pub fn push_first(&mut self, value: M)
先頭に値を追加する
Trait Implementations§
Auto Trait Implementations§
impl<M> !Freeze for SplayTree<M>
impl<M> !RefUnwindSafe for SplayTree<M>
impl<M> !Send for SplayTree<M>
impl<M> !Sync for SplayTree<M>
impl<M> Unpin for SplayTree<M>
impl<M> UnwindSafe for SplayTree<M>where
M: 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