Trait necsim_core::cogs::habitat::UniformlySampleableHabitat
source · pub trait UniformlySampleableHabitat<M: MathsCore, G: RngCore<M>>: Habitat<M> {
// Provided method
fn sample_habitable_indexed_location(&self, rng: &mut G) -> IndexedLocation { ... }
}
Provided Methods§
sourcefn sample_habitable_indexed_location(&self, rng: &mut G) -> IndexedLocation
fn sample_habitable_indexed_location(&self, rng: &mut G) -> IndexedLocation
§Contracts
Post-condition - debug: sampled indexed location is habitable
old(self).get_extent().contains(ret.location()) && ret.index() < old(self).get_habitat_at_location(ret.location())
Object Safety§
This trait is not object safe.