Enum PlacedFeatureRef
pub(in worldgen::feature) enum PlacedFeatureRef {
Reference(&'static PlacedFeature),
Inline(Box<PlacedFeatureData>),
}Expand description
A placed feature reference, either a registry entry or an inline placed feature.
Variants§
Reference(&'static PlacedFeature)
Registry-backed placed feature.
Inline(Box<PlacedFeatureData>)
Inline placed feature.
Trait Implementations§
§impl Clone for PlacedFeatureRef
impl Clone for PlacedFeatureRef
§fn clone(&self) -> PlacedFeatureRef
fn clone(&self) -> PlacedFeatureRef
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for PlacedFeatureRef
impl !UnwindSafe for PlacedFeatureRef
impl Freeze for PlacedFeatureRef
impl Send for PlacedFeatureRef
impl Sync for PlacedFeatureRef
impl Unpin for PlacedFeatureRef
impl UnsafeUnpin for PlacedFeatureRef
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>