pub enum ControlCommand {
MovePlayerHead(Direction),
MovePlayerPointer(Direction),
}
Variants§
Trait Implementations§
Source§impl Clone for ControlCommand
impl Clone for ControlCommand
Source§fn clone(&self) -> ControlCommand
fn clone(&self) -> ControlCommand
Returns a copy 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 Debug for ControlCommand
impl Debug for ControlCommand
Source§impl From<ControlCommand> for Command
impl From<ControlCommand> for Command
Source§fn from(command: ControlCommand) -> Self
fn from(command: ControlCommand) -> Self
Converts to this type from the input type.
Source§impl Hash for ControlCommand
impl Hash for ControlCommand
Source§impl Ord for ControlCommand
impl Ord for ControlCommand
Source§fn cmp(&self, other: &ControlCommand) -> Ordering
fn cmp(&self, other: &ControlCommand) -> 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 PartialEq for ControlCommand
impl PartialEq for ControlCommand
Source§impl PartialOrd for ControlCommand
impl PartialOrd for ControlCommand
impl Copy for ControlCommand
impl Eq for ControlCommand
impl StructuralPartialEq for ControlCommand
Auto Trait Implementations§
impl Freeze for ControlCommand
impl RefUnwindSafe for ControlCommand
impl Send for ControlCommand
impl Sync for ControlCommand
impl Unpin for ControlCommand
impl UnwindSafe for ControlCommand
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