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