Struct TreeConfiguration
pub(in worldgen::feature) struct TreeConfiguration {
pub trunk_provider: BlockStateProvider,
pub below_trunk_provider: BlockStateProvider,
pub foliage_provider: BlockStateProvider,
pub trunk_placer: TrunkPlacer,
pub foliage_placer: FoliagePlacer,
pub minimum_size: FeatureSize,
pub decorators: Vec<TreeDecorator>,
pub root_placer: Option<RootPlacer>,
pub ignore_vines: bool,
}Fields§
§trunk_provider: BlockStateProvider§below_trunk_provider: BlockStateProvider§foliage_provider: BlockStateProvider§trunk_placer: TrunkPlacer§foliage_placer: FoliagePlacer§minimum_size: FeatureSize§decorators: Vec<TreeDecorator>§root_placer: Option<RootPlacer>§ignore_vines: boolTrait Implementations§
§impl Clone for TreeConfiguration
impl Clone for TreeConfiguration
§fn clone(&self) -> TreeConfiguration
fn clone(&self) -> TreeConfiguration
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 TreeConfiguration
impl !UnwindSafe for TreeConfiguration
impl Freeze for TreeConfiguration
impl Send for TreeConfiguration
impl Sync for TreeConfiguration
impl Unpin for TreeConfiguration
impl UnsafeUnpin for TreeConfiguration
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<>>