pub struct Initial {
pub side: usize,
pub nx: usize,
pub ny: usize,
pub nz: usize,
pub fractions: BTreeMap<String, f64>,
}Expand description
The initial condition. Squares laid down from the origin, all of the first
type unless fractions says otherwise.
Fields§
§side: usizeSide of each square in sites.
nx: usizeSquares across.
ny: usizeSquares down.
nz: usizeCubes through the depth. Absent is one layer.
fractions: BTreeMap<String, f64>Fraction of the cells to start as each named type. What the map leaves unassigned starts as the first type the description lists, so an infection seeded at two percent states one number.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Initial
impl<'de> Deserialize<'de> for Initial
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Initial
impl RefUnwindSafe for Initial
impl Send for Initial
impl Sync for Initial
impl Unpin for Initial
impl UnsafeUnpin for Initial
impl UnwindSafe for Initial
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