pub struct CaveOpts {
pub w: i32,
pub h: i32,
pub seed: u64,
pub fill: f32,
pub smooth: usize,
pub floor: u32,
pub wall: u32,
pub accent: Option<u32>,
}Expand description
Cave parameters: cellular automata. fill ~ initial wall density,
smooth iteration passes; open cells become floor, border walls become
wall; rare accent tiles (crystals) dot the floor.
Fields§
§w: i32§h: i32§seed: u64§fill: f32§smooth: usize§floor: u32§wall: u32§accent: Option<u32>Trait Implementations§
Auto Trait Implementations§
impl Freeze for CaveOpts
impl RefUnwindSafe for CaveOpts
impl Send for CaveOpts
impl Sync for CaveOpts
impl Unpin for CaveOpts
impl UnsafeUnpin for CaveOpts
impl UnwindSafe for CaveOpts
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