Trait necsim_impls_no_std::cogs::dispersal_sampler::trespassing::AntiTrespassingDispersalSampler
source · pub trait AntiTrespassingDispersalSampler<M: MathsCore, H: Habitat<M>, G: RngCore<M>>: Backup + Debug {
// Provided method
fn sample_anti_trespassing_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location { ... }
}
Provided Methods§
sourcefn sample_anti_trespassing_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location
fn sample_anti_trespassing_dispersal_from_location( &self, location: &Location, habitat: &H, rng: &mut G ) -> Location
§Contracts
Pre-condition - debug: location is inhabitable
! habitat.is_location_habitable(location)
Post-condition - debug: target is habitable
old(habitat).is_location_habitable(&ret)
Object Safety§
This trait is not object safe.