pub struct MaybeOrderBy(/* private fields */);Expand description
The optionality carrier for SortBuilder::by: an absent order skips the
field. A local newtype because coherence forbids impl From<…> for Option<_>.
SortOrder, OrderBy, and — via the umbrella impl — Option<T: Into<OrderBy>>
all flow in, so a consumer’s Option<MyDir> self-skips on None after one
impl From<MyDir> for OrderBy.
Trait Implementations§
Source§impl Clone for MaybeOrderBy
impl Clone for MaybeOrderBy
Source§fn clone(&self) -> MaybeOrderBy
fn clone(&self) -> MaybeOrderBy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MaybeOrderBy
impl Debug for MaybeOrderBy
Source§impl From<OrderBy> for MaybeOrderBy
impl From<OrderBy> for MaybeOrderBy
Auto Trait Implementations§
impl Freeze for MaybeOrderBy
impl RefUnwindSafe for MaybeOrderBy
impl Send for MaybeOrderBy
impl Sync for MaybeOrderBy
impl Unpin for MaybeOrderBy
impl UnsafeUnpin for MaybeOrderBy
impl UnwindSafe for MaybeOrderBy
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