pub enum StreetSeparator {
OfThe,
}Expand description
The StreetNamePreType is the pre-type element of a complete street name.
Variants§
OfThe
Implementations§
Source§impl StreetSeparator
impl StreetSeparator
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 separator in all caps with spaces, 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 StreetSeparator
impl Clone for StreetSeparator
Source§fn clone(&self) -> StreetSeparator
fn clone(&self) -> StreetSeparator
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 StreetSeparator
impl Debug for StreetSeparator
Source§impl Default for StreetSeparator
impl Default for StreetSeparator
Source§fn default() -> StreetSeparator
fn default() -> StreetSeparator
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StreetSeparator
impl<'de> Deserialize<'de> for StreetSeparator
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 StreetSeparator
impl Display for StreetSeparator
Source§impl FromStr for StreetSeparator
impl FromStr for StreetSeparator
Source§impl Hash for StreetSeparator
impl Hash for StreetSeparator
Source§impl IntoEnumIterator for StreetSeparator
impl IntoEnumIterator for StreetSeparator
Source§impl Ord for StreetSeparator
impl Ord for StreetSeparator
Source§fn cmp(&self, other: &StreetSeparator) -> Ordering
fn cmp(&self, other: &StreetSeparator) -> 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 StreetSeparator
impl PartialEq for StreetSeparator
Source§impl PartialOrd for StreetSeparator
impl PartialOrd for StreetSeparator
Source§impl Serialize for StreetSeparator
impl Serialize for StreetSeparator
impl Copy for StreetSeparator
impl Eq for StreetSeparator
impl StructuralPartialEq for StreetSeparator
Auto Trait Implementations§
impl Freeze for StreetSeparator
impl RefUnwindSafe for StreetSeparator
impl Send for StreetSeparator
impl Sync for StreetSeparator
impl Unpin for StreetSeparator
impl UnwindSafe for StreetSeparator
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