Struct swifco_rs::systems::csf::disease_course::Exponential
source · [−]struct Exponential {
params: DiseaseCourseParams,
infected_query: Query<(&'static Entity, &'static mut CsfInfected)>,
resistant_query: Query<(&'static Entity, &'static mut CsfResistant)>,
to_recover: Vec<Entity>,
to_die: Vec<Entity>,
to_expose: Vec<Entity>,
}
Fields
params: DiseaseCourseParams
infected_query: Query<(&'static Entity, &'static mut CsfInfected)>
resistant_query: Query<(&'static Entity, &'static mut CsfResistant)>
to_recover: Vec<Entity>
to_die: Vec<Entity>
to_expose: Vec<Entity>
Implementations
sourceimpl Exponential
impl Exponential
fn infect(
params: &DiseaseCourseParams,
entity: Entity,
world: &mut World,
rng: &mut Rng,
tick: u32
)
Trait Implementations
sourceimpl System for Exponential
impl System for Exponential
fn update(&mut self, world: &mut World, resources: &mut Resources)
fn init_boars(
&self,
world: &mut World,
_resources: &mut Resources,
boars: &[Entity]
)
fn initialize(&mut self, _world: &mut World, _resources: &mut Resources)
fn finalize(&mut self, _world: &mut World, _resources: &mut Resources)
Auto Trait Implementations
impl RefUnwindSafe for Exponential
impl Send for Exponential
impl !Sync for Exponential
impl Unpin for Exponential
impl UnwindSafe for Exponential
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more