Enum airmash_protocol::PlaneType
[−]
[src]
pub enum PlaneType { Predator, Tornado, Mohawk, Goliath, Prowler, }
All plane types present within airmash.
Variants
Predator
Tornado
Mohawk
Goliath
Prowler
Methods
impl PlaneType
[src]
pub fn to_u8(self) -> u8
[src]
Get the associated numerical value
pub fn from_u8(v: u8) -> Option<Self>
[src]
Get the plane associated with a numerical
value, or None
otherwise.
Trait Implementations
impl Clone for PlaneType
[src]
fn clone(&self) -> PlaneType
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for PlaneType
[src]
impl Debug for PlaneType
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PlaneType
[src]
fn eq(&self, __arg_0: &PlaneType) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.