Struct necsim_impls_no_std::cogs::dispersal_sampler::in_memory::cumulative::InMemoryCumulativeDispersalSampler
source · pub struct InMemoryCumulativeDispersalSampler<M: MathsCore, H: Habitat<M>, G: RngCore<M>> { /* private fields */ }
Trait Implementations§
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> Clone for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> Clone for InMemoryCumulativeDispersalSampler<M, H, G>
source§impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>> Debug for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>> Debug for InMemoryCumulativeDispersalSampler<M, H, G>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> DispersalSampler<M, H, G> for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> DispersalSampler<M, H, G> for InMemoryCumulativeDispersalSampler<M, H, G>
§fn sample_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location
fn sample_dispersal_from_location( &self, location: &Location, habitat: &H, rng: &mut G ) -> Location
Contracts Read more
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> InMemoryDispersalSampler<M, H, G> for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>> InMemoryDispersalSampler<M, H, G> for InMemoryCumulativeDispersalSampler<M, H, G>
source§fn new(
dispersal: &Array2D<NonNegativeF64>,
habitat: &H
) -> Result<Self, InMemoryDispersalSamplerError>
fn new( dispersal: &Array2D<NonNegativeF64>, habitat: &H ) -> Result<Self, InMemoryDispersalSamplerError>
§Contracts
Post-condition - debug: valid_dispersal_targets only allows dispersal to habitat
ret.as_ref().map_or(true, |ret| { ret.explicit_only_valid_targets_dispersal_contract(old(habitat)) })
Auto Trait Implementations§
impl<M, H, G> Freeze for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M, H, G> RefUnwindSafe for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M, H, G> Send for InMemoryCumulativeDispersalSampler<M, H, G>where
H: Send,
impl<M, H, G> Sync for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M, H, G> Unpin for InMemoryCumulativeDispersalSampler<M, H, G>
impl<M, H, G> UnwindSafe for InMemoryCumulativeDispersalSampler<M, H, G>
Blanket Implementations§
§impl<T> Backup for Twhere
T: Clone,
impl<T> Backup for Twhere
T: Clone,
default unsafe fn backup_unchecked(&self) -> T
default unsafe fn __contracts_impl_backup_unchecked(&self) -> T
fn backup(&self) -> BackedUp<Self>
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> ExtractDiscriminant for T
impl<T> ExtractDiscriminant for T
§type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
type Discriminant = <T as ExtractDiscriminantSpec<<T as DiscriminantKind>::Discriminant>>::Ty
The type of the discriminant, which must satisfy the trait bounds
required by
core::mem::Discriminant
. Read more