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§

source

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.

Implementors§

source§

impl<M: MathsCore, H: UniformlySampleableHabitat<M, G>, G: RngCore<M>> AntiTrespassingDispersalSampler<M, H, G> for UniformAntiTrespassingDispersalSampler<M, H, G>