Struct SearchSort
pub struct SearchSort { /* private fields */ }Expand description
A sort instruction for search results.
Implementations§
§impl SearchSort
impl SearchSort
pub const fn ascending(field: SearchField) -> SearchSort
pub const fn ascending(field: SearchField) -> SearchSort
Creates an ascending sort.
pub const fn descending(field: SearchField) -> SearchSort
pub const fn descending(field: SearchField) -> SearchSort
Creates a descending sort.
pub const fn field(&self) -> &SearchField
pub const fn field(&self) -> &SearchField
Returns the sort field.
pub const fn is_descending(&self) -> bool
pub const fn is_descending(&self) -> bool
Returns whether the sort is descending.
Trait Implementations§
§impl Clone for SearchSort
impl Clone for SearchSort
§fn clone(&self) -> SearchSort
fn clone(&self) -> SearchSort
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 more§impl Debug for SearchSort
impl Debug for SearchSort
§impl PartialEq for SearchSort
impl PartialEq for SearchSort
impl Eq for SearchSort
impl StructuralPartialEq for SearchSort
Auto Trait Implementations§
impl Freeze for SearchSort
impl RefUnwindSafe for SearchSort
impl Send for SearchSort
impl Sync for SearchSort
impl Unpin for SearchSort
impl UnsafeUnpin for SearchSort
impl UnwindSafe for SearchSort
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