Trait necsim_core::cogs::turnover_rate::TurnoverRate

source ·
pub trait TurnoverRate<M: MathsCore, H: Habitat<M>>: Backup + Debug {
    // Provided method
    fn get_turnover_rate_at_location(
        &self,
        location: &Location,
        habitat: &H
    ) -> NonNegativeF64 { ... }
}

Provided Methods§

source

fn get_turnover_rate_at_location( &self, location: &Location, habitat: &H ) -> NonNegativeF64

§Contracts

Pre-condition - debug: location is habitable

  • habitat.is_location_habitable(location)

Post-condition - debug: only returns zero if the location is inhabitable

  • ret != 0.0_f64 || habitat.get_habitat_at_location(location) == 0_u32

Object Safety§

This trait is not object safe.

Implementors§