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