Enum initiative_core::world::place::region::RegionType
source · pub enum RegionType {
Any,
Geography(GeographyType),
Political(PoliticalType),
}
Variants§
Implementations§
source§impl RegionType
impl RegionType
Trait Implementations§
source§impl Clone for RegionType
impl Clone for RegionType
source§fn clone(&self) -> RegionType
fn clone(&self) -> RegionType
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 RegionType
impl Debug for RegionType
source§impl<'de> Deserialize<'de> for RegionType
impl<'de> Deserialize<'de> for RegionType
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 From<RegionType> for &'static str
impl From<RegionType> for &'static str
source§fn from(variant: RegionType) -> &'static str
fn from(variant: RegionType) -> &'static str
Converts to this type from the input type.
source§impl From<RegionType> for String
impl From<RegionType> for String
source§fn from(variant: RegionType) -> String
fn from(variant: RegionType) -> String
Converts to this type from the input type.
source§impl FromStr for RegionType
impl FromStr for RegionType
source§impl PartialEq for RegionType
impl PartialEq for RegionType
source§fn eq(&self, other: &RegionType) -> bool
fn eq(&self, other: &RegionType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for RegionType
impl Serialize for RegionType
source§impl TryFrom<&str> for RegionType
impl TryFrom<&str> for RegionType
impl Copy for RegionType
impl Eq for RegionType
impl StructuralPartialEq for RegionType
Auto Trait Implementations§
impl Freeze for RegionType
impl RefUnwindSafe for RegionType
impl Send for RegionType
impl Sync for RegionType
impl Unpin for RegionType
impl UnwindSafe for RegionType
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)