pub enum StreetNamePreDirectional {
NORTHEAST,
NORTHWEST,
SOUTHEAST,
SOUTHWEST,
NORTH,
SOUTH,
EAST,
WEST,
}Expand description
The StreetNamePreDirectional enum represents the street name predirectional component of the
complete street name. Predirectionals in the City consist of NW, NE, SW and SE, but County
roads annexed by the City can contain N, E, S and W.
Variants§
Implementations§
Source§impl StreetNamePreDirectional
impl StreetNamePreDirectional
Sourcepub fn abbreviate(&self) -> String
pub fn abbreviate(&self) -> String
The abbreviate method converts the variant to an abbreviated string for labeling.
Sourcepub fn match_abbreviated(input: &str) -> Option<Self>
pub fn match_abbreviated(input: &str) -> Option<Self>
Matches the target data against the official postal abbreviation for street name prediretionals.
Sourcepub fn deserialize_abbreviated<'de, D: Deserializer<'de>>(
de: D,
) -> Result<Option<Self>, D::Error>
pub fn deserialize_abbreviated<'de, D: Deserializer<'de>>( de: D, ) -> Result<Option<Self>, D::Error>
Deserialization function for street name predirectionals. This works if all the predirectionals in the
data observe the official postal contraction. For predirectionals with a mix of abbreviations and
alternative spellings, Self::deserialize_mixed will work better.
Sourcepub fn match_mixed(input: &str) -> Option<Self>
pub fn match_mixed(input: &str) -> Option<Self>
Maps the string representation of a street pre-directional designation to the appropriate
StreetNamePreDirectional enum variant.
Sourcepub fn deserialize_mixed<'de, D: Deserializer<'de>>(
de: D,
) -> Result<Option<Self>, D::Error>
pub fn deserialize_mixed<'de, D: Deserializer<'de>>( de: D, ) -> Result<Option<Self>, D::Error>
Deserialization function for street name predirectionals. Matches the target data against novel spellings of valid predirectionals. Add any missing spelling variants to the match statement.
Trait Implementations§
Source§impl Clone for StreetNamePreDirectional
impl Clone for StreetNamePreDirectional
Source§fn clone(&self) -> StreetNamePreDirectional
fn clone(&self) -> StreetNamePreDirectional
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreetNamePreDirectional
impl Debug for StreetNamePreDirectional
Source§impl Default for StreetNamePreDirectional
impl Default for StreetNamePreDirectional
Source§fn default() -> StreetNamePreDirectional
fn default() -> StreetNamePreDirectional
Source§impl<'de> Deserialize<'de> for StreetNamePreDirectional
impl<'de> Deserialize<'de> for StreetNamePreDirectional
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>,
Source§impl Display for StreetNamePreDirectional
impl Display for StreetNamePreDirectional
Source§impl FromStr for StreetNamePreDirectional
impl FromStr for StreetNamePreDirectional
Source§impl Hash for StreetNamePreDirectional
impl Hash for StreetNamePreDirectional
Source§impl Ord for StreetNamePreDirectional
impl Ord for StreetNamePreDirectional
Source§fn cmp(&self, other: &StreetNamePreDirectional) -> Ordering
fn cmp(&self, other: &StreetNamePreDirectional) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for StreetNamePreDirectional
impl PartialEq for StreetNamePreDirectional
Source§impl PartialOrd for StreetNamePreDirectional
impl PartialOrd for StreetNamePreDirectional
Source§impl Serialize for StreetNamePreDirectional
impl Serialize for StreetNamePreDirectional
impl Copy for StreetNamePreDirectional
impl Eq for StreetNamePreDirectional
impl StructuralPartialEq for StreetNamePreDirectional
Auto Trait Implementations§
impl Freeze for StreetNamePreDirectional
impl RefUnwindSafe for StreetNamePreDirectional
impl Send for StreetNamePreDirectional
impl Sync for StreetNamePreDirectional
impl Unpin for StreetNamePreDirectional
impl UnwindSafe for StreetNamePreDirectional
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more