Struct airmash_protocol::Mob [−][src]
pub struct Mob(pub u16);
A mob (missile, upgrade, or powerup) ID
Methods
impl Mob
[src]
impl Mob
Trait Implementations
impl Copy for Mob
[src]
impl Copy for Mob
impl Clone for Mob
[src]
impl Clone for Mob
fn clone(&self) -> Mob
[src]
fn clone(&self) -> Mob
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for Mob
[src]
impl Debug for Mob
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for Mob
[src]
impl Default for Mob
impl Eq for Mob
[src]
impl Eq for Mob
impl PartialEq for Mob
[src]
impl PartialEq for Mob
fn eq(&self, other: &Mob) -> bool
[src]
fn eq(&self, other: &Mob) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Mob) -> bool
[src]
fn ne(&self, other: &Mob) -> bool
This method tests for !=
.
impl Hash for Mob
[src]
impl Hash for Mob
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl From<u16> for Mob
[src]
impl From<u16> for Mob
impl From<Mob> for u16
[src]
impl From<Mob> for u16
impl Serialize for Mob
[src]
impl Serialize for Mob
fn serialize<S>(&self, ser: S) -> Result<S::Ok, S::Error> where
S: Serializer,
[src]
fn serialize<S>(&self, ser: S) -> Result<S::Ok, S::Error> where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl<'de> Deserialize<'de> for Mob
[src]
impl<'de> Deserialize<'de> for Mob
fn deserialize<D>(de: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
[src]
fn deserialize<D>(de: D) -> Result<Self, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more