pub enum MovePriority<ID: Ord> {
First(ID, usize),
Second(Reverse<Priority>, Reverse<BaseStat>, Option<u16>),
}Variants§
Trait Implementations§
Source§impl<ID: Ord + Ord> Ord for MovePriority<ID>
impl<ID: Ord + Ord> Ord for MovePriority<ID>
Source§fn cmp(&self, other: &MovePriority<ID>) -> Ordering
fn cmp(&self, other: &MovePriority<ID>) -> 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<ID: PartialOrd + Ord> PartialOrd for MovePriority<ID>
impl<ID: PartialOrd + Ord> PartialOrd for MovePriority<ID>
impl<ID: Eq + Ord> Eq for MovePriority<ID>
impl<ID: Ord> StructuralPartialEq for MovePriority<ID>
Auto Trait Implementations§
impl<ID> Freeze for MovePriority<ID>where
ID: Freeze,
impl<ID> RefUnwindSafe for MovePriority<ID>where
ID: RefUnwindSafe,
impl<ID> Send for MovePriority<ID>where
ID: Send,
impl<ID> Sync for MovePriority<ID>where
ID: Sync,
impl<ID> Unpin for MovePriority<ID>where
ID: Unpin,
impl<ID> UnwindSafe for MovePriority<ID>where
ID: 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