Enum initiative_core::world::place::location::LocationType
source · pub enum LocationType {
Any,
Geographical(GeographicalType),
Landmark(LandmarkType),
Settlement(SettlementType),
}
Variants§
Implementations§
source§impl LocationType
impl LocationType
Trait Implementations§
source§impl Clone for LocationType
impl Clone for LocationType
source§fn clone(&self) -> LocationType
fn clone(&self) -> LocationType
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 LocationType
impl Debug for LocationType
source§impl<'de> Deserialize<'de> for LocationType
impl<'de> Deserialize<'de> for LocationType
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<LocationType> for &'static str
impl From<LocationType> for &'static str
source§fn from(variant: LocationType) -> &'static str
fn from(variant: LocationType) -> &'static str
Converts to this type from the input type.
source§impl From<LocationType> for String
impl From<LocationType> for String
source§fn from(variant: LocationType) -> String
fn from(variant: LocationType) -> String
Converts to this type from the input type.
source§impl FromStr for LocationType
impl FromStr for LocationType
source§impl PartialEq for LocationType
impl PartialEq for LocationType
source§fn eq(&self, other: &LocationType) -> bool
fn eq(&self, other: &LocationType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for LocationType
impl Serialize for LocationType
source§impl TryFrom<&str> for LocationType
impl TryFrom<&str> for LocationType
impl Copy for LocationType
impl Eq for LocationType
impl StructuralPartialEq for LocationType
Auto Trait Implementations§
impl Freeze for LocationType
impl RefUnwindSafe for LocationType
impl Send for LocationType
impl Sync for LocationType
impl Unpin for LocationType
impl UnwindSafe for LocationType
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
)