pub struct Ranked<C, K> {
pub command: C,
pub group: u8,
pub value: (i64, i64),
pub key: Option<K>,
}Expand description
One command of a candidate order, as the game ranks it.
Fields§
§command: CThe command.
group: u8Its group: lower groups come first.
value: (i64, i64)Its value in its group: higher comes first.
key: Option<K>What it is one of, for one per key first (the target it strikes,
say); None is never held back.
Implementations§
Trait Implementations§
impl<C: Eq, K: Eq> Eq for Ranked<C, K>
impl<C: PartialEq, K: PartialEq> StructuralPartialEq for Ranked<C, K>
Auto Trait Implementations§
impl<C, K> Freeze for Ranked<C, K>
impl<C, K> RefUnwindSafe for Ranked<C, K>where
C: RefUnwindSafe,
K: RefUnwindSafe,
impl<C, K> Send for Ranked<C, K>
impl<C, K> Sync for Ranked<C, K>
impl<C, K> Unpin for Ranked<C, K>
impl<C, K> UnsafeUnpin for Ranked<C, K>where
C: UnsafeUnpin,
K: UnsafeUnpin,
impl<C, K> UnwindSafe for Ranked<C, K>where
C: UnwindSafe,
K: 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