#[non_exhaustive]pub enum PowerupType {
Shield,
Inferno,
Unknown(u8),
}Expand description
The type of powerup effect that a player has.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for PowerupType
impl Clone for PowerupType
Source§fn clone(&self) -> PowerupType
fn clone(&self) -> PowerupType
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 PowerupType
impl Debug for PowerupType
Source§impl Default for PowerupType
impl Default for PowerupType
Source§impl<'de> DeserializeV5<'de> for PowerupType
impl<'de> DeserializeV5<'de> for PowerupType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
Source§impl From<PowerupType> for u8
impl From<PowerupType> for u8
Source§fn from(v: PowerupType) -> Self
fn from(v: PowerupType) -> Self
Converts to this type from the input type.
Source§impl From<u8> for PowerupType
impl From<u8> for PowerupType
Source§impl Hash for PowerupType
impl Hash for PowerupType
Source§impl PartialEq for PowerupType
impl PartialEq for PowerupType
Source§impl SerializeV5 for PowerupType
impl SerializeV5 for PowerupType
impl Copy for PowerupType
impl Eq for PowerupType
impl StructuralPartialEq for PowerupType
Auto Trait Implementations§
impl Freeze for PowerupType
impl RefUnwindSafe for PowerupType
impl Send for PowerupType
impl Sync for PowerupType
impl Unpin for PowerupType
impl UnwindSafe for PowerupType
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