pub struct SirModel {
pub s: f64,
pub i: f64,
pub r: f64,
pub n: f64,
pub beta: f64,
pub gamma: f64,
pub time: f64,
}Expand description
Susceptible-Infected-Recovered (SIR) model.
Fields§
§s: f64§i: f64§r: f64§n: f64§beta: f64§gamma: f64§time: f64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SirModel
impl RefUnwindSafe for SirModel
impl Send for SirModel
impl Sync for SirModel
impl Unpin for SirModel
impl UnsafeUnpin for SirModel
impl UnwindSafe for SirModel
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