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§

source

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
source

fn get_self_dispersal_probability_at_location( &self, location: &Location, habitat: &H ) -> ClosedUnitF64

§Contracts

Pre-condition - debug: location is habitable

  • habitat.is_location_habitable(location)

Object Safety§

This trait is not object safe.

Implementors§