pub enum StructureGenerationStep {
SurfaceStructures,
UndergroundStructures,
UndergroundDecoration,
}Expand description
Structure generation step.
Variants§
SurfaceStructures
surface_structures.
UndergroundStructures
underground_structures.
UndergroundDecoration
underground_decoration.
Implementations§
Source§impl StructureGenerationStep
impl StructureGenerationStep
Sourcepub const fn decoration_ordinal(self) -> usize
pub const fn decoration_ordinal(self) -> usize
Decoration-stage ordinal used by vanilla GenerationStep.Decoration.
Structure JSON only names the three structure-capable decoration stages; feature generation still runs all eleven decoration stages, so these values intentionally leave the vanilla gaps intact.
Trait Implementations§
Source§impl Clone for StructureGenerationStep
impl Clone for StructureGenerationStep
Source§fn clone(&self) -> StructureGenerationStep
fn clone(&self) -> StructureGenerationStep
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for StructureGenerationStep
Source§impl Debug for StructureGenerationStep
impl Debug for StructureGenerationStep
impl Eq for StructureGenerationStep
Source§impl PartialEq for StructureGenerationStep
impl PartialEq for StructureGenerationStep
Source§fn eq(&self, other: &StructureGenerationStep) -> bool
fn eq(&self, other: &StructureGenerationStep) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructureGenerationStep
Auto Trait Implementations§
impl Freeze for StructureGenerationStep
impl RefUnwindSafe for StructureGenerationStep
impl Send for StructureGenerationStep
impl Sync for StructureGenerationStep
impl Unpin for StructureGenerationStep
impl UnsafeUnpin for StructureGenerationStep
impl UnwindSafe for StructureGenerationStep
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.