pub enum DamageStatus {
NoDamage,
Damaged,
}Expand description
Custom defined enum to model a system being Not Damaged or Damaged.
Variants§
Trait Implementations§
Source§impl Clone for DamageStatus
impl Clone for DamageStatus
Source§fn clone(&self) -> DamageStatus
fn clone(&self) -> DamageStatus
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 DamageStatus
impl Debug for DamageStatus
Source§impl Default for DamageStatus
impl Default for DamageStatus
Source§fn default() -> DamageStatus
fn default() -> DamageStatus
Returns the “default value” for a type. Read more
Source§impl From<&DamageStatus> for u8
impl From<&DamageStatus> for u8
Source§fn from(value: &DamageStatus) -> Self
fn from(value: &DamageStatus) -> Self
Converts to this type from the input type.
Source§impl From<u8> for DamageStatus
impl From<u8> for DamageStatus
Source§impl PartialEq for DamageStatus
impl PartialEq for DamageStatus
impl StructuralPartialEq for DamageStatus
Auto Trait Implementations§
impl Freeze for DamageStatus
impl RefUnwindSafe for DamageStatus
impl Send for DamageStatus
impl Sync for DamageStatus
impl Unpin for DamageStatus
impl UnwindSafe for DamageStatus
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