pub struct TrySortWith<S>(pub S);
Expand description
Treat a function as a try sort function. Assumes that:
true
is returned if and only if the input array is sorted
The input array can be permuted arbitrarily, but no elements may be changed
If force
is true, then the input array must always be sorted
Tuple Fields§
§0: S
Trait Implementations§
Source§impl<S: Clone> Clone for TrySortWith<S>
impl<S: Clone> Clone for TrySortWith<S>
Source§fn clone(&self) -> TrySortWith<S>
fn clone(&self) -> TrySortWith<S>
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<S: Debug> Debug for TrySortWith<S>
impl<S: Debug> Debug for TrySortWith<S>
Source§impl<S, K> TrySorter<K> for TrySortWith<S>
impl<S, K> TrySorter<K> for TrySortWith<S>
impl<S: Copy> Copy for TrySortWith<S>
Auto Trait Implementations§
impl<S> Freeze for TrySortWith<S>where
S: Freeze,
impl<S> RefUnwindSafe for TrySortWith<S>where
S: RefUnwindSafe,
impl<S> Send for TrySortWith<S>where
S: Send,
impl<S> Sync for TrySortWith<S>where
S: Sync,
impl<S> Unpin for TrySortWith<S>where
S: Unpin,
impl<S> UnwindSafe for TrySortWith<S>where
S: 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