pub struct SortKey { /* private fields */ }Expand description
Composite sort key builder.
Implementations§
Source§impl SortKey
impl SortKey
pub fn new() -> Self
pub fn criterion_count(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn compare(
&self,
a: &HashMap<String, String>,
b: &HashMap<String, String>,
) -> Ordering
pub fn compare( &self, a: &HashMap<String, String>, b: &HashMap<String, String>, ) -> Ordering
Compare two string-keyed records using the composite key.
pub fn clear(&mut self)
Sourcepub fn to_string_repr(&self) -> String
pub fn to_string_repr(&self) -> String
Return a string representation of the sort key.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SortKey
impl RefUnwindSafe for SortKey
impl Send for SortKey
impl Sync for SortKey
impl Unpin for SortKey
impl UnsafeUnpin for SortKey
impl UnwindSafe for SortKey
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