Struct necsim_impls_no_std::cogs::turnover_rate::uniform::UniformTurnoverRate
source · pub struct UniformTurnoverRate { /* private fields */ }
Implementations§
source§impl UniformTurnoverRate
impl UniformTurnoverRate
pub fn new(turnover_rate: PositiveF64) -> Self
pub fn get_uniform_turnover_rate(&self) -> PositiveF64
Trait Implementations§
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N, UnconditionalEventSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N>, I> for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, S: LocallyCoherentLineageStore<M, H>, X: EmigrationExit<M, H, G, S>, D: DispersalSampler<M, H, G>, N: SpeciationProbability<M, H>, I: ImmigrationEntry<M>> ActiveLineageSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N, UnconditionalEventSampler<M, H, G, S, X, D, UnconditionalCoalescenceSampler<M, H, S>, UniformTurnoverRate, N>, I> for ClassicalActiveLineageSampler<M, H, G, S, X, D, N, I>
type LineageIterator<'a> = impl Iterator<Item = &'a Lineage> where H: 'a, G: 'a, S: 'a, X: 'a, D: 'a, N: 'a, I: 'a
fn number_active_lineages(&self) -> usize
fn iter_active_lineages_ordered<'a>( &'a self, habitat: &'a H, lineage_store: &'a S ) -> Self::LineageIterator<'a>
fn get_last_event_time(&self) -> NonNegativeF64
§fn pop_active_lineage_and_event_time<P>(
&mut self,
simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>,
rng: &mut G,
early_peek_stop: P
) -> Option<(Lineage, PositiveF64)>
fn pop_active_lineage_and_event_time<P>( &mut self, simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>, rng: &mut G, early_peek_stop: P ) -> Option<(Lineage, PositiveF64)>
Contracts Read more
§fn push_active_lineage(
&mut self,
lineage: Lineage,
simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>,
rng: &mut G
)
fn push_active_lineage( &mut self, lineage: Lineage, simulation: &mut PartialSimulation<M, H, G, S, X, D, C, T, N, E>, rng: &mut G )
Contracts Read more
source§impl Clone for UniformTurnoverRate
impl Clone for UniformTurnoverRate
source§fn clone(&self) -> UniformTurnoverRate
fn clone(&self) -> UniformTurnoverRate
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for UniformTurnoverRate
impl Debug for UniformTurnoverRate
source§impl Default for UniformTurnoverRate
impl Default for UniformTurnoverRate
source§impl RustToCuda for UniformTurnoverRate
impl RustToCuda for UniformTurnoverRate
type CudaRepresentation = UniformTurnoverRateCudaRepresentation
type CudaAllocation = NoCudaAlloc
source§impl RustToCudaAsync for UniformTurnoverRate
impl RustToCudaAsync for UniformTurnoverRate
type CudaAllocationAsync = NoCudaAlloc
source§impl<M: MathsCore, H: Habitat<M>> TurnoverRate<M, H> for UniformTurnoverRate
impl<M: MathsCore, H: Habitat<M>> TurnoverRate<M, H> for UniformTurnoverRate
§fn get_turnover_rate_at_location(
&self,
location: &Location,
habitat: &H
) -> NonNegativeF64
fn get_turnover_rate_at_location( &self, location: &Location, habitat: &H ) -> NonNegativeF64
Contracts Read more
Auto Trait Implementations§
impl Freeze for UniformTurnoverRate
impl RefUnwindSafe for UniformTurnoverRate
impl Send for UniformTurnoverRate
impl Sync for UniformTurnoverRate
impl Unpin for UniformTurnoverRate
impl UnwindSafe for UniformTurnoverRate
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 moresource§impl<T> LendToCuda for Twhere
T: RustToCuda,
impl<T> LendToCuda for Twhere
T: RustToCuda,
source§fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda<O, E, F>(&self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync,
Lends an immutable borrow of
&self
to CUDA: Read moresource§fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
fn lend_to_cuda_mut<O, E, F>(&mut self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceMutRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Sync + SafeMutableAliasing,
source§fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
fn move_to_cuda<O, E, F>(self, inner: F) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(HostAndDeviceOwned<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>) -> Result<O, E>,
T: Send + RustToCuda,
<T as RustToCuda>::CudaRepresentation: StackOnly,
<T as RustToCuda>::CudaAllocation: EmptyCudaAlloc,
source§impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
impl<T> LendToCudaAsync for Twhere
T: RustToCudaAsync,
source§fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
fn lend_to_cuda_async<'stream, O, E, F>(
&self,
stream: Stream<'stream>,
inner: F
) -> Result<O, E>where
E: From<CudaError>,
F: FnOnce(Async<'_, 'stream, HostAndDeviceConstRef<'_, DeviceAccessible<<T as RustToCuda>::CudaRepresentation>>>) -> Result<O, E>,
T: Sync,
Lends an immutable copy of
&self
to CUDA: Read more