pub trait SeparableDispersalSampler<M: MathsCore, H: Habitat<M>, G: RngCore<M>>: DispersalSampler<M, H, G> {
// Provided methods
fn sample_non_self_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location { ... }
fn get_self_dispersal_probability_at_location(
&self,
location: &Location,
habitat: &H
) -> ClosedUnitF64 { ... }
}
Provided Methods§
sourcefn sample_non_self_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location
fn sample_non_self_dispersal_from_location( &self, location: &Location, habitat: &H, rng: &mut G ) -> Location
§Contracts
Pre-condition - debug: location is habitable
habitat.is_location_habitable(location)
Post-condition - debug: target is habitable
old(habitat).is_location_habitable(&ret)
Post-condition - debug: disperses to a different location
& ret != location
sourcefn get_self_dispersal_probability_at_location(
&self,
location: &Location,
habitat: &H
) -> ClosedUnitF64
fn get_self_dispersal_probability_at_location( &self, location: &Location, habitat: &H ) -> ClosedUnitF64
Object Safety§
This trait is not object safe.