pub struct GeographicRegionId(/* private fields */);Implementations§
Source§impl GeographicRegionId
impl GeographicRegionId
Sourcepub fn new(value: impl AsRef<str>) -> Result<Self, GeographicRegionTextError>
pub fn new(value: impl AsRef<str>) -> Result<Self, GeographicRegionTextError>
Creates a geographic region identifier 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 GeographicRegionId
impl AsRef<str> for GeographicRegionId
Source§impl Clone for GeographicRegionId
impl Clone for GeographicRegionId
Source§fn clone(&self) -> GeographicRegionId
fn clone(&self) -> GeographicRegionId
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 GeographicRegionId
impl Debug for GeographicRegionId
Source§impl Display for GeographicRegionId
impl Display for GeographicRegionId
Source§impl FromStr for GeographicRegionId
impl FromStr for GeographicRegionId
Source§impl Hash for GeographicRegionId
impl Hash for GeographicRegionId
Source§impl Ord for GeographicRegionId
impl Ord for GeographicRegionId
Source§fn cmp(&self, other: &GeographicRegionId) -> Ordering
fn cmp(&self, other: &GeographicRegionId) -> 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 GeographicRegionId
impl PartialEq for GeographicRegionId
Source§impl PartialOrd for GeographicRegionId
impl PartialOrd for GeographicRegionId
impl Eq for GeographicRegionId
impl StructuralPartialEq for GeographicRegionId
Auto Trait Implementations§
impl Freeze for GeographicRegionId
impl RefUnwindSafe for GeographicRegionId
impl Send for GeographicRegionId
impl Sync for GeographicRegionId
impl Unpin for GeographicRegionId
impl UnsafeUnpin for GeographicRegionId
impl UnwindSafe for GeographicRegionId
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