Struct airmash_protocol::Player [−][src]
pub struct Player(pub u16);
A player ID
Methods
impl Player
[src]
impl Player
Trait Implementations
impl Copy for Player
[src]
impl Copy for Player
impl Clone for Player
[src]
impl Clone for Player
fn clone(&self) -> Player
[src]
fn clone(&self) -> Player
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 Player
[src]
impl Debug for Player
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 Player
[src]
impl Default for Player
impl Eq for Player
[src]
impl Eq for Player
impl PartialEq for Player
[src]
impl PartialEq for Player
fn eq(&self, other: &Player) -> bool
[src]
fn eq(&self, other: &Player) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Player) -> bool
[src]
fn ne(&self, other: &Player) -> bool
This method tests for !=
.
impl Hash for Player
[src]
impl Hash for Player
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 Player
[src]
impl From<u16> for Player
impl From<Player> for u16
[src]
impl From<Player> for u16
impl Serialize for Player
[src]
impl Serialize for Player
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 Player
[src]
impl<'de> Deserialize<'de> for Player
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