Enum airmash_protocol::PowerupType
source · [−]#[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.
Shield
Inferno
Unknown(u8)
Trait Implementations
sourceimpl Clone for PowerupType
impl Clone for PowerupType
sourcefn clone(&self) -> PowerupType
fn clone(&self) -> PowerupType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PowerupType
impl Debug for PowerupType
sourceimpl Default for PowerupType
impl Default for PowerupType
sourceimpl<'de> DeserializeV5<'de> for PowerupType
impl<'de> DeserializeV5<'de> for PowerupType
fn deserialize(de: &mut AirmashDeserializerV5<'de>) -> Result<Self, Error>
sourceimpl From<PowerupType> for u8
impl From<PowerupType> for u8
sourcefn from(v: PowerupType) -> Self
fn from(v: PowerupType) -> Self
Converts to this type from the input type.
sourceimpl From<u8> for PowerupType
impl From<u8> for PowerupType
sourceimpl Hash for PowerupType
impl Hash for PowerupType
sourceimpl PartialEq<PowerupType> for PowerupType
impl PartialEq<PowerupType> for PowerupType
sourcefn eq(&self, other: &PowerupType) -> bool
fn eq(&self, other: &PowerupType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PowerupType) -> bool
fn ne(&self, other: &PowerupType) -> bool
This method tests for !=
.
sourceimpl SerializeV5 for PowerupType
impl SerializeV5 for PowerupType
impl Copy for PowerupType
impl Eq for PowerupType
impl StructuralEq for PowerupType
impl StructuralPartialEq for PowerupType
Auto Trait Implementations
impl RefUnwindSafe for PowerupType
impl Send for PowerupType
impl Sync for PowerupType
impl Unpin for PowerupType
impl UnwindSafe for PowerupType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more