pub struct OrderingSetWithContext<R, A> { /* private fields */ }
Available on crate feature
sort
only.Expand description
A collection of sort orders, built from a SortableWithContext
type.
Note that the context object provided on construction may be
stored within the resulting object, and may also be cloned into
the Meta
for other types.
Implementations§
Source§impl<'s, A: Clone + 's, R> OrderingSetWithContext<R, A>where
R: 's + SortableWithContext<'s, A>,
impl<'s, A: Clone + 's, R> OrderingSetWithContext<R, A>where
R: 's + SortableWithContext<'s, A>,
Sourcepub fn new(access: A) -> Self
pub fn new(access: A) -> Self
Create a new OrderingSet for a Sortable type.
Sourcepub fn create_sort(
&self,
expr: &str,
) -> Result<Box<dyn Sorter<R> + 's>, SorterError>
pub fn create_sort( &self, expr: &str, ) -> Result<Box<dyn Sorter<R> + 's>, SorterError>
Parse a sort expression and return a Sorter.
Valid sort expressions consist of a comma-separated list of sorts, each of
which may be optionally preceded by a -
to reverse its sense.
Auto Trait Implementations§
impl<R, A> Freeze for OrderingSetWithContext<R, A>where
A: Freeze,
impl<R, A> RefUnwindSafe for OrderingSetWithContext<R, A>where
A: RefUnwindSafe,
R: RefUnwindSafe,
impl<R, A> Send for OrderingSetWithContext<R, A>
impl<R, A> Sync for OrderingSetWithContext<R, A>
impl<R, A> Unpin for OrderingSetWithContext<R, A>
impl<R, A> UnwindSafe for OrderingSetWithContext<R, A>where
A: UnwindSafe,
R: 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