Struct iata_types::AirportCode [−][src]
pub struct AirportCode(_);
3 letter airport code
Methods
impl AirportCode
[src]
impl AirportCode
pub fn as_str(&self) -> &str
[src]
pub fn as_str(&self) -> &str
pub fn as_bytes(&self) -> &[u8]
[src]
pub fn as_bytes(&self) -> &[u8]
pub unsafe fn from_bytes_unchecked(bytes: &[u8]) -> Self
[src]
pub unsafe fn from_bytes_unchecked(bytes: &[u8]) -> Self
Reconstruct AirportCode from AirportCode.as_bytes()
Trait Implementations
impl Ord for AirportCode
[src]
impl Ord for AirportCode
fn cmp(&self, other: &AirportCode) -> Ordering
[src]
fn cmp(&self, other: &AirportCode) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialOrd for AirportCode
[src]
impl PartialOrd for AirportCode
fn partial_cmp(&self, other: &AirportCode) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &AirportCode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &AirportCode) -> bool
[src]
fn lt(&self, other: &AirportCode) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &AirportCode) -> bool
[src]
fn le(&self, other: &AirportCode) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &AirportCode) -> bool
[src]
fn gt(&self, other: &AirportCode) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &AirportCode) -> bool
[src]
fn ge(&self, other: &AirportCode) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl Eq for AirportCode
[src]
impl Eq for AirportCode
impl PartialEq for AirportCode
[src]
impl PartialEq for AirportCode
fn eq(&self, other: &AirportCode) -> bool
[src]
fn eq(&self, other: &AirportCode) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &AirportCode) -> bool
[src]
fn ne(&self, other: &AirportCode) -> bool
This method tests for !=
.
impl Hash for AirportCode
[src]
impl Hash for AirportCode
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,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Clone for AirportCode
[src]
impl Clone for AirportCode
fn clone(&self) -> AirportCode
[src]
fn clone(&self) -> AirportCode
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)
Performs copy-assignment from source
. Read more
impl Copy for AirportCode
[src]
impl Copy for AirportCode
impl Display for AirportCode
[src]
impl Display for AirportCode
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 Debug for AirportCode
[src]
impl Debug for AirportCode
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 FromStr for AirportCode
[src]
impl FromStr for AirportCode
Auto Trait Implementations
impl Send for AirportCode
impl Send for AirportCode
impl Sync for AirportCode
impl Sync for AirportCode