#[repr(u8)]pub enum UnitStrategy {
Attack = 0,
Rally = 1,
Idle = 2,
}Variants§
Trait Implementations§
Source§impl Clone for UnitStrategy
impl Clone for UnitStrategy
Source§fn clone(&self) -> UnitStrategy
fn clone(&self) -> UnitStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UnitStrategy
impl Debug for UnitStrategy
Source§impl From<UnitStrategy> for u8
impl From<UnitStrategy> for u8
Source§fn from(value: UnitStrategy) -> u8
fn from(value: UnitStrategy) -> u8
Converts to this type from the input type.
Source§impl Ord for UnitStrategy
impl Ord for UnitStrategy
Source§fn cmp(&self, other: &UnitStrategy) -> Ordering
fn cmp(&self, other: &UnitStrategy) -> Ordering
1.21.0 (const: unstable) · 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 UnitStrategy
impl PartialEq for UnitStrategy
Source§fn eq(&self, other: &UnitStrategy) -> bool
fn eq(&self, other: &UnitStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for UnitStrategy
impl PartialOrd for UnitStrategy
Source§impl TryFrom<u8> for UnitStrategy
impl TryFrom<u8> for UnitStrategy
Source§type Error = TryFromU8Error
type Error = TryFromU8Error
The type returned in the event of a conversion error.
impl Copy for UnitStrategy
impl Eq for UnitStrategy
impl StructuralPartialEq for UnitStrategy
Auto Trait Implementations§
impl Freeze for UnitStrategy
impl RefUnwindSafe for UnitStrategy
impl Send for UnitStrategy
impl Sync for UnitStrategy
impl Unpin for UnitStrategy
impl UnsafeUnpin for UnitStrategy
impl UnwindSafe for UnitStrategy
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