pub struct VoxelConfig {
pub grid: u32,
pub rules: RuleList,
pub seed_radius: f32,
pub seed_fill: f32,
pub wrap: bool,
pub shells: u32,
pub present: Present,
pub salt: u32,
}Expand description
[voxel] — the structural configuration, fixed while the preset is loaded
and delivered through Scene::configure.
Fields§
§grid: u32§rules: RuleListThe rules a preset lists, compiled.
seed_radius: f32The seeded ball’s radius, as a fraction of the cube’s half-side.
seed_fill: f32The probability a cell inside the seeded ball is live.
wrap: booltrue: the cube is a 3-torus. false: every cell past a face is dead.
shells: u32How many radial shells the spectrum lights, 0..=MAX_SHELLS; 0
lights none.
present: PresentHow a live cell is drawn: as glowing light, or as a lit solid face.
salt: u32The preset’s pinned salt (ADR-0051), which every seeded cell is drawn from.
Trait Implementations§
Source§impl Clone for VoxelConfig
impl Clone for VoxelConfig
Source§fn clone(&self) -> VoxelConfig
fn clone(&self) -> VoxelConfig
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 moreSource§impl Debug for VoxelConfig
impl Debug for VoxelConfig
Source§impl Default for VoxelConfig
impl Default for VoxelConfig
Source§impl PartialEq for VoxelConfig
impl PartialEq for VoxelConfig
Source§fn eq(&self, other: &VoxelConfig) -> bool
fn eq(&self, other: &VoxelConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for VoxelConfig
impl StructuralPartialEq for VoxelConfig
Auto Trait Implementations§
impl Freeze for VoxelConfig
impl RefUnwindSafe for VoxelConfig
impl Send for VoxelConfig
impl Sync for VoxelConfig
impl Unpin for VoxelConfig
impl UnsafeUnpin for VoxelConfig
impl UnwindSafe for VoxelConfig
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