#[repr(u8)]pub enum UnitCommand {
Move = 0,
Repair = 1,
Rebuild = 2,
Assist = 3,
Mine = 4,
Boost = 5,
EnterPayload = 6,
LoadUnits = 7,
LoadBlocks = 8,
UnloadPayload = 9,
LoopPayload = 10,
}Variants§
Move = 0
Repair = 1
Rebuild = 2
Assist = 3
Mine = 4
Boost = 5
EnterPayload = 6
LoadUnits = 7
LoadBlocks = 8
UnloadPayload = 9
LoopPayload = 10
Trait Implementations§
Source§impl Clone for UnitCommand
impl Clone for UnitCommand
Source§fn clone(&self) -> UnitCommand
fn clone(&self) -> UnitCommand
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 Debug for UnitCommand
impl Debug for UnitCommand
Source§impl From<UnitCommand> for DynData
impl From<UnitCommand> for DynData
Source§fn from(f: UnitCommand) -> Self
fn from(f: UnitCommand) -> Self
Source§impl From<UnitCommand> for u8
impl From<UnitCommand> for u8
Source§fn from(value: UnitCommand) -> u8
fn from(value: UnitCommand) -> u8
Converts to this type from the input type.
Source§impl Hash for UnitCommand
impl Hash for UnitCommand
Source§impl Ord for UnitCommand
impl Ord for UnitCommand
Source§fn cmp(&self, other: &UnitCommand) -> Ordering
fn cmp(&self, other: &UnitCommand) -> 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 UnitCommand
impl PartialEq for UnitCommand
Source§impl PartialOrd for UnitCommand
impl PartialOrd for UnitCommand
Source§impl TryFrom<u8> for UnitCommand
impl TryFrom<u8> for UnitCommand
Source§type Error = TryFromU8Error
type Error = TryFromU8Error
The type returned in the event of a conversion error.
impl Copy for UnitCommand
impl Eq for UnitCommand
impl StructuralPartialEq for UnitCommand
Auto Trait Implementations§
impl Freeze for UnitCommand
impl RefUnwindSafe for UnitCommand
impl Send for UnitCommand
impl Sync for UnitCommand
impl Unpin for UnitCommand
impl UnwindSafe for UnitCommand
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more