pub struct KeyStrategy<F, T, K> {
pub key: F,
/* private fields */
}
Expand description
A key-based unordered sort on a type
Fields§
§key: F
The underlying key extraction function
Trait Implementations§
Source§impl<F: Clone, T: Clone, K: Clone> Clone for KeyStrategy<F, T, K>
impl<F: Clone, T: Clone, K: Clone> Clone for KeyStrategy<F, T, K>
Source§fn clone(&self) -> KeyStrategy<F, T, K>
fn clone(&self) -> KeyStrategy<F, T, K>
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<F, T, K> KeyBytes<T> for KeyStrategy<F, T, K>
impl<F, T, K> KeyBytes<T> for KeyStrategy<F, T, K>
Source§const HAS_CONST_KEY_LEN: bool = K::HAS_CONST_KEY_LEN
const HAS_CONST_KEY_LEN: bool = K::HAS_CONST_KEY_LEN
Get whether the key length for this type is always constant
Source§const MAX_KEY_LEN: Option<usize> = K::MAX_KEY_LEN
const MAX_KEY_LEN: Option<usize> = K::MAX_KEY_LEN
Get the maximum key length for this type
Source§fn has_const_key_len(&self) -> bool
fn has_const_key_len(&self) -> bool
Whether this key length is constant
Source§fn max_key_len(&self) -> Option<usize>
fn max_key_len(&self) -> Option<usize>
The maximum key length
Source§impl<F, T, K> TrySorter<T> for KeyStrategy<F, T, K>
impl<F, T, K> TrySorter<T> for KeyStrategy<F, T, K>
impl<F: Copy, T: Copy, K: Copy> Copy for KeyStrategy<F, T, K>
Auto Trait Implementations§
impl<F, T, K> Freeze for KeyStrategy<F, T, K>where
F: Freeze,
impl<F, T, K> RefUnwindSafe for KeyStrategy<F, T, K>
impl<F, T, K> Send for KeyStrategy<F, T, K>
impl<F, T, K> Sync for KeyStrategy<F, T, K>
impl<F, T, K> Unpin for KeyStrategy<F, T, K>
impl<F, T, K> UnwindSafe for KeyStrategy<F, T, K>
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