pub enum StreetNamePreType {
Avenue,
Highway,
Interstate,
Mount,
}Expand description
The StreetNamePreType is the pre-type element of a complete street name.
Variants§
Implementations§
Source§impl StreetNamePreType
impl StreetNamePreType
Sourcepub fn upper(&self) -> String
pub fn upper(&self) -> String
The upper method converts the variant name to UPPERCASE case using
convert_case::Case::Upper.
Sourcepub fn label(&self) -> String
pub fn label(&self) -> String
The label method returns the street name pre-type in all caps, for printing
labels.
Sourcepub fn match_mixed(input: &str) -> Option<Self>
pub fn match_mixed(input: &str) -> Option<Self>
The match_mixed method attempts to match the string input against a variant of
StreetNamePreType.
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>
The deserialize_mixed method attempts to match the input to a valid street name
pre-modifier variant.
Trait Implementations§
Source§impl Clone for StreetNamePreType
impl Clone for StreetNamePreType
Source§fn clone(&self) -> StreetNamePreType
fn clone(&self) -> StreetNamePreType
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StreetNamePreType
impl Debug for StreetNamePreType
Source§impl Default for StreetNamePreType
impl Default for StreetNamePreType
Source§fn default() -> StreetNamePreType
fn default() -> StreetNamePreType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreetNamePreType
impl<'de> Deserialize<'de> for StreetNamePreType
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
Source§impl Display for StreetNamePreType
impl Display for StreetNamePreType
Source§impl FromStr for StreetNamePreType
impl FromStr for StreetNamePreType
Source§impl Hash for StreetNamePreType
impl Hash for StreetNamePreType
Source§impl IntoEnumIterator for StreetNamePreType
impl IntoEnumIterator for StreetNamePreType
Source§impl Ord for StreetNamePreType
impl Ord for StreetNamePreType
Source§fn cmp(&self, other: &StreetNamePreType) -> Ordering
fn cmp(&self, other: &StreetNamePreType) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StreetNamePreType
impl PartialEq for StreetNamePreType
Source§impl PartialOrd for StreetNamePreType
impl PartialOrd for StreetNamePreType
Source§impl Serialize for StreetNamePreType
impl Serialize for StreetNamePreType
impl Copy for StreetNamePreType
impl Eq for StreetNamePreType
impl StructuralPartialEq for StreetNamePreType
Auto Trait Implementations§
impl Freeze for StreetNamePreType
impl RefUnwindSafe for StreetNamePreType
impl Send for StreetNamePreType
impl Sync for StreetNamePreType
impl Unpin for StreetNamePreType
impl UnwindSafe for StreetNamePreType
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,
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>
Converts
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>
Converts
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