pub struct SortQueries {
pub raw_config: ValidSortByConfig,
}Fields§
§raw_config: ValidSortByConfigImplementations§
Source§impl SortQueries
impl SortQueries
pub fn new(config: ValidSortByConfig) -> Self
Sourcepub fn compare(
&self,
a: &ValidResultMainRow,
b: &ValidResultMainRow,
) -> Ordering
pub fn compare( &self, a: &ValidResultMainRow, b: &ValidResultMainRow, ) -> Ordering
Główny komparator. Zwraca Ordering (Mniej, Więcej, Równe).
Trait Implementations§
Source§impl Clone for SortQueries
impl Clone for SortQueries
Source§fn clone(&self) -> SortQueries
fn clone(&self) -> SortQueries
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for SortQueries
impl RefUnwindSafe for SortQueries
impl Send for SortQueries
impl Sync for SortQueries
impl Unpin for SortQueries
impl UnsafeUnpin for SortQueries
impl UnwindSafe for SortQueries
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