Struct CountrySubdivision
pub struct CountrySubdivision(/* private fields */);Implementations§
§impl CountrySubdivision
impl CountrySubdivision
pub fn new(
value: impl AsRef<str>,
) -> Result<CountrySubdivision, CountrySubdivisionError>
pub fn new( value: impl AsRef<str>, ) -> Result<CountrySubdivision, CountrySubdivisionError>
Creates a value from non-empty text.
§Errors
Returns CountrySubdivisionError::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
Trait Implementations§
§impl AsRef<str> for CountrySubdivision
impl AsRef<str> for CountrySubdivision
§impl Clone for CountrySubdivision
impl Clone for CountrySubdivision
§fn clone(&self) -> CountrySubdivision
fn clone(&self) -> CountrySubdivision
Returns a duplicate 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 more§impl Debug for CountrySubdivision
impl Debug for CountrySubdivision
§impl Display for CountrySubdivision
impl Display for CountrySubdivision
§impl FromStr for CountrySubdivision
impl FromStr for CountrySubdivision
§type Err = CountrySubdivisionError
type Err = CountrySubdivisionError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<CountrySubdivision, <CountrySubdivision as FromStr>::Err>
fn from_str( value: &str, ) -> Result<CountrySubdivision, <CountrySubdivision as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for CountrySubdivision
impl Hash for CountrySubdivision
§impl Ord for CountrySubdivision
impl Ord for CountrySubdivision
§fn cmp(&self, other: &CountrySubdivision) -> Ordering
fn cmp(&self, other: &CountrySubdivision) -> 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
§impl PartialEq for CountrySubdivision
impl PartialEq for CountrySubdivision
§impl PartialOrd for CountrySubdivision
impl PartialOrd for CountrySubdivision
§impl TryFrom<&str> for CountrySubdivision
impl TryFrom<&str> for CountrySubdivision
§type Error = CountrySubdivisionError
type Error = CountrySubdivisionError
The type returned in the event of a conversion error.
§fn try_from(
value: &str,
) -> Result<CountrySubdivision, <CountrySubdivision as TryFrom<&str>>::Error>
fn try_from( value: &str, ) -> Result<CountrySubdivision, <CountrySubdivision as TryFrom<&str>>::Error>
Performs the conversion.
impl Eq for CountrySubdivision
impl StructuralPartialEq for CountrySubdivision
Auto Trait Implementations§
impl Freeze for CountrySubdivision
impl RefUnwindSafe for CountrySubdivision
impl Send for CountrySubdivision
impl Sync for CountrySubdivision
impl Unpin for CountrySubdivision
impl UnsafeUnpin for CountrySubdivision
impl UnwindSafe for CountrySubdivision
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