pub struct OrderMethod<T = i8>(pub T)
where
T: OrderMethodValue;
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 for OrderMethod<T>where
T: Clone + OrderMethodValue,
impl<T> Clone for OrderMethod<T>where
T: Clone + OrderMethodValue,
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 for OrderMethod<T>where
T: Debug + OrderMethodValue,
impl<T> Debug for OrderMethod<T>where
T: Debug + OrderMethodValue,
Source§impl<T> Default for OrderMethod<T>where
T: Default + OrderMethodValue,
impl<T> Default for OrderMethod<T>where
T: Default + OrderMethodValue,
Source§fn default() -> OrderMethod<T>
fn default() -> OrderMethod<T>
Returns the “default value” for a type. Read more
Source§impl<T> From<T> for OrderMethod<T>where
T: OrderMethodValue,
impl<T> From<T> for OrderMethod<T>where
T: OrderMethodValue,
Source§fn from(value: T) -> OrderMethod<T>
fn from(value: T) -> OrderMethod<T>
Converts to this type from the input type.
Source§impl<T> Hash for OrderMethod<T>where
T: Hash + OrderMethodValue,
impl<T> Hash for OrderMethod<T>where
T: Hash + OrderMethodValue,
Source§impl<T> Ord for OrderMethod<T>where
T: Ord + OrderMethodValue,
impl<T> Ord for OrderMethod<T>where
T: Ord + OrderMethodValue,
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 for OrderMethod<T>where
T: PartialEq + OrderMethodValue,
impl<T> PartialEq for OrderMethod<T>where
T: PartialEq + OrderMethodValue,
Source§impl<T> PartialOrd for OrderMethod<T>where
T: PartialOrd + OrderMethodValue,
impl<T> PartialOrd for OrderMethod<T>where
T: PartialOrd + OrderMethodValue,
impl<T> Copy for OrderMethod<T>where
T: Copy + OrderMethodValue,
impl<T> Eq for OrderMethod<T>where
T: Eq + OrderMethodValue,
impl<T> StructuralPartialEq for OrderMethod<T>where
T: OrderMethodValue,
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