pub struct SirGrid {
pub grid: Vec<SirCell>,
pub width: usize,
pub height: usize,
pub beta: f64,
pub gamma: f64,
pub diffusion: f64,
pub time: f64,
}Expand description
Spatial SIR model on a 2D grid.
Fields§
§grid: Vec<SirCell>§width: usize§height: usize§beta: f64§gamma: f64§diffusion: f64§time: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SirGrid
impl RefUnwindSafe for SirGrid
impl Send for SirGrid
impl Sync for SirGrid
impl Unpin for SirGrid
impl UnsafeUnpin for SirGrid
impl UnwindSafe for SirGrid
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