pub struct OrderMethod<T: OrderMethodValue = i8>(pub T);
Expand description
An integer value for ordering.
- 0: Disabled
- > 0: Ascending
- < 0: Descending
- Absolute value indicates priority; the smaller the value, the more important it is.
Tuple Fields§
§0: T
Trait Implementations§
Source§impl<T: Clone + OrderMethodValue> Clone for OrderMethod<T>
impl<T: Clone + OrderMethodValue> Clone for OrderMethod<T>
Source§fn clone(&self) -> OrderMethod<T>
fn clone(&self) -> OrderMethod<T>
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 moreSource§impl<T: Debug + OrderMethodValue> Debug for OrderMethod<T>
impl<T: Debug + OrderMethodValue> Debug for OrderMethod<T>
Source§impl<T: Default + OrderMethodValue> Default for OrderMethod<T>
impl<T: Default + OrderMethodValue> Default for OrderMethod<T>
Source§fn default() -> OrderMethod<T>
fn default() -> OrderMethod<T>
Returns the “default value” for a type. Read more
Source§impl<T: OrderMethodValue> From<T> for OrderMethod<T>
impl<T: OrderMethodValue> From<T> for OrderMethod<T>
Source§impl<T: Hash + OrderMethodValue> Hash for OrderMethod<T>
impl<T: Hash + OrderMethodValue> Hash for OrderMethod<T>
Source§impl<T: Ord + OrderMethodValue> Ord for OrderMethod<T>
impl<T: Ord + OrderMethodValue> Ord for OrderMethod<T>
Source§fn cmp(&self, other: &OrderMethod<T>) -> Ordering
fn cmp(&self, other: &OrderMethod<T>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T: PartialEq + OrderMethodValue> PartialEq for OrderMethod<T>
impl<T: PartialEq + OrderMethodValue> PartialEq for OrderMethod<T>
Source§impl<T: PartialOrd + OrderMethodValue> PartialOrd for OrderMethod<T>
impl<T: PartialOrd + OrderMethodValue> PartialOrd for OrderMethod<T>
impl<T: Copy + OrderMethodValue> Copy for OrderMethod<T>
impl<T: Eq + OrderMethodValue> Eq for OrderMethod<T>
impl<T: OrderMethodValue> StructuralPartialEq for OrderMethod<T>
Auto Trait Implementations§
impl<T> Freeze for OrderMethod<T>where
T: Freeze,
impl<T> RefUnwindSafe for OrderMethod<T>where
T: RefUnwindSafe,
impl<T> Send for OrderMethod<T>where
T: Send,
impl<T> Sync for OrderMethod<T>where
T: Sync,
impl<T> Unpin for OrderMethod<T>where
T: Unpin,
impl<T> UnwindSafe for OrderMethod<T>where
T: 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