Enum airmash_protocol::FlagCode
[−]
[src]
pub enum FlagCode { SyrianArabRepublic, Thailand, Turkmenistan, Tunisia, Turkey, TrinidadandTobago, Taiwan, Tanzania, Ukraine, UnitedNations, UnitedStates, Uruguay, Uzbekistan, Venezuela, VietNam, PuertoRico, Portugal, Paraguay, Qatar, Rainbow, Romania, Serbia, RussianFederation, SaudiArabia, Sweden, Singapore, Slovenia, Slovakia, SanMarino, Macedonia, Macao, Malta, Mexico, Malaysia, Nigeria, Netherlands, Norway, Nepal, NewZealand, Oman, Panama, Peru, Japan, DPRK, SouthKorea, Kuwait, Kazakhstan, Lebanon, Liechtenstein, SriLanka, Lithuania, Luxembourg, Latvia, Honduras, Croatia, Hungary, Indonesia, Ireland, Israel, IsleofMan, ImperialJapan, India, Iraq, Germany, Denmark, DominicanRepublic, Algeria, Ecuador, Estonia, Egypt, Spain, EuropeanUnion, Bahrain, Bolivia, Brazil, Bhutan, Belarus, Canada, Switzerland, Andorra, UnitedArabEmirates, Albania, Armenia, Chile, Antarctica, China, Argentina, Finland, Colombia, Austria, Iran, France, Communist, Australia, LibyanArabJamahiriya, Iceland, UnitedKingdom, Confederate, Azerbaijan, Morocco, Italy, Georgia, CostaRica, BosniaandHerzegovina, Philippines, Monaco, Jamaica, Greece, Cuba, Bangladesh, Somalia, Pakistan, Moldova, Jordan, Guatemala, Cyprus, Belgium, SouthAfrica, ElSalvador, Poland, Montenegro, JollyRogers, HongKong, CzechRepublic, Bulgaria, }
All the current flags present within the airmash server.
Variants
SyrianArabRepublic
Thailand
Turkmenistan
Tunisia
Turkey
TrinidadandTobago
Taiwan
Tanzania
Ukraine
UnitedNations
UnitedStates
Uruguay
Uzbekistan
Venezuela
VietNam
PuertoRico
Portugal
Paraguay
Qatar
Rainbow
Romania
Serbia
RussianFederation
SaudiArabia
Sweden
Singapore
Slovenia
Slovakia
SanMarino
Macedonia
Macao
Malta
Mexico
Malaysia
Nigeria
Netherlands
Norway
Nepal
NewZealand
Oman
Panama
Peru
Japan
DPRK
SouthKorea
Kuwait
Kazakhstan
Lebanon
Liechtenstein
SriLanka
Lithuania
Luxembourg
Latvia
Honduras
Croatia
Hungary
Indonesia
Ireland
Israel
IsleofMan
ImperialJapan
India
Iraq
Germany
Denmark
DominicanRepublic
Algeria
Ecuador
Estonia
Egypt
Spain
EuropeanUnion
Bahrain
Bolivia
Brazil
Bhutan
Belarus
Canada
Switzerland
Andorra
UnitedArabEmirates
Albania
Armenia
Chile
Antarctica
China
Argentina
Finland
Colombia
Austria
Iran
France
Communist
Australia
LibyanArabJamahiriya
Iceland
UnitedKingdom
Confederate
Azerbaijan
Morocco
Italy
Georgia
CostaRica
BosniaandHerzegovina
Philippines
Monaco
Jamaica
Greece
Cuba
Bangladesh
Somalia
Pakistan
Moldova
Jordan
Guatemala
Cyprus
Belgium
SouthAfrica
ElSalvador
Poland
Montenegro
JollyRogers
HongKong
CzechRepublic
Bulgaria
Methods
impl FlagCode
[src]
pub fn to_u16(self) -> u16
[src]
Returns the numeric value that corresponds to the flag code.
This is the value that is actually sent in the serialized packet and is used in the client.
Credit to Bombita for determining the flag -> number mapping. Sources here.
pub fn from_u16(v: u16) -> Option<FlagCode>
[src]
Return the flag code that corresponds to
the numeric value, or None
if there
is no corresponding flag.
Credit to Bombita for determining the flag -> number mapping. Sources here.
pub fn to_str(self) -> &'static str
[src]
Get the ISO-2 code associated with the flag (or special codes for non-country flags)
pub fn from_str(v: &str) -> Option<Self>
[src]
Get the flag code associated with an ISO-2 country code. (or special codes for non-country flags).
Trait Implementations
impl Copy for FlagCode
[src]
impl Clone for FlagCode
[src]
fn clone(&self) -> FlagCode
[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 Debug for FlagCode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for FlagCode
[src]
fn eq(&self, __arg_0: &FlagCode) -> 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 !=
.