pub struct GeographicRegionName(/* private fields */);Implementations§
Source§impl GeographicRegionName
impl GeographicRegionName
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GeographicRegionTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GeographicRegionTextError>
Creates a geographic region name from non-empty text.
§Errors
Returns GeographicRegionTextError::Empty when the trimmed value is empty.
pub fn as_str(&self) -> &str
pub fn into_string(self) -> String
Trait Implementations§
Source§impl AsRef<str> for GeographicRegionName
impl AsRef<str> for GeographicRegionName
Source§impl Clone for GeographicRegionName
impl Clone for GeographicRegionName
Source§fn clone(&self) -> GeographicRegionName
fn clone(&self) -> GeographicRegionName
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 moreSource§impl Debug for GeographicRegionName
impl Debug for GeographicRegionName
Source§impl Display for GeographicRegionName
impl Display for GeographicRegionName
Source§impl FromStr for GeographicRegionName
impl FromStr for GeographicRegionName
Source§impl Hash for GeographicRegionName
impl Hash for GeographicRegionName
Source§impl Ord for GeographicRegionName
impl Ord for GeographicRegionName
Source§fn cmp(&self, other: &GeographicRegionName) -> Ordering
fn cmp(&self, other: &GeographicRegionName) -> 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 GeographicRegionName
impl PartialEq for GeographicRegionName
Source§impl PartialOrd for GeographicRegionName
impl PartialOrd for GeographicRegionName
impl Eq for GeographicRegionName
impl StructuralPartialEq for GeographicRegionName
Auto Trait Implementations§
impl Freeze for GeographicRegionName
impl RefUnwindSafe for GeographicRegionName
impl Send for GeographicRegionName
impl Sync for GeographicRegionName
impl Unpin for GeographicRegionName
impl UnsafeUnpin for GeographicRegionName
impl UnwindSafe for GeographicRegionName
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