pub struct SelectSort<T> { /* private fields */ }
Expand description
select sort
Implementations§
Source§impl<T> SelectSort<T>
impl<T> SelectSort<T>
pub fn select_sort<F>(&mut self, f: F)
pub fn select_sort_by_find_smallest<F>(&mut self, f: F) -> Vec<T>
pub fn find_smallest<F>(&self, f: F) -> usize
Trait Implementations§
Source§impl<T: Debug> Debug for SelectSort<T>
impl<T: Debug> Debug for SelectSort<T>
Source§impl<T> From<Vec<T>> for SelectSort<T>
impl<T> From<Vec<T>> for SelectSort<T>
Source§impl<T: PartialOrd + Clone> Sort<T> for SelectSort<T>
impl<T: PartialOrd + Clone> Sort<T> for SelectSort<T>
Auto Trait Implementations§
impl<T> Freeze for SelectSort<T>
impl<T> RefUnwindSafe for SelectSort<T>where
T: RefUnwindSafe,
impl<T> Send for SelectSort<T>where
T: Send,
impl<T> Sync for SelectSort<T>where
T: Sync,
impl<T> Unpin for SelectSort<T>where
T: Unpin,
impl<T> UnwindSafe for SelectSort<T>where
T: 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