Enum initiative_core::world::place::PlaceType
source · pub enum PlaceType {
Any,
Building(BuildingType),
Location(LocationType),
Region(RegionType),
}
Variants§
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for PlaceType
impl<'de> Deserialize<'de> for PlaceType
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 Generate for PlaceType
impl Generate for PlaceType
fn regenerate(&mut self, rng: &mut impl Rng, _demographics: &Demographics)
fn generate(rng: &mut impl Rng, demographics: &Demographics) -> Self
source§impl PartialEq for PlaceType
impl PartialEq for PlaceType
impl Copy for PlaceType
impl Eq for PlaceType
impl StructuralPartialEq for PlaceType
Auto Trait Implementations§
impl Freeze for PlaceType
impl RefUnwindSafe for PlaceType
impl Send for PlaceType
impl Sync for PlaceType
impl Unpin for PlaceType
impl UnwindSafe for PlaceType
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
)