pub enum WindDirection {
Show 16 variants
N,
NNE,
NE,
ENE,
E,
ESE,
SE,
SSE,
S,
SSW,
SW,
WSW,
W,
WNW,
NW,
NNW,
}Variants§
Implementations§
Source§impl WindDirection
impl WindDirection
Sourcepub fn from_spanish(text: &str) -> Option<Self>
pub fn from_spanish(text: &str) -> Option<Self>
Map CENAPRED’s Spanish compass wording onto a 16-point code.
Matching is ordered longest-first: oestenoroeste contains noroeste,
so a shortest-first scan silently resolves WNW as NW.
Trait Implementations§
Source§impl Clone for WindDirection
impl Clone for WindDirection
impl Copy for WindDirection
Source§impl Debug for WindDirection
impl Debug for WindDirection
Source§impl<'de> Deserialize<'de> for WindDirection
impl<'de> Deserialize<'de> for WindDirection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for WindDirection
Source§impl PartialEq for WindDirection
impl PartialEq for WindDirection
Source§impl Serialize for WindDirection
impl Serialize for WindDirection
impl StructuralPartialEq for WindDirection
Auto Trait Implementations§
impl Freeze for WindDirection
impl RefUnwindSafe for WindDirection
impl Send for WindDirection
impl Sync for WindDirection
impl Unpin for WindDirection
impl UnsafeUnpin for WindDirection
impl UnwindSafe for WindDirection
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.