pub struct InMemoryTurnoverRate { /* private fields */ }
Implementations§
source§impl InMemoryTurnoverRate
impl InMemoryTurnoverRate
sourcepub fn new<M: MathsCore>(
turnover_rate: Array2D<NonNegativeF64>,
habitat: &InMemoryHabitat<M>
) -> Result<Self, InMemoryTurnoverRateError>
pub fn new<M: MathsCore>( turnover_rate: Array2D<NonNegativeF64>, habitat: &InMemoryHabitat<M> ) -> Result<Self, InMemoryTurnoverRateError>
§Errors
Returns InMemoryTurnoverRateError::ZeroTurnoverHabitat
iff there is
zero turnover at any location with non-zero habitat.
Trait Implementations§
source§impl Clone for InMemoryTurnoverRate
impl Clone for InMemoryTurnoverRate
source§fn clone(&self) -> InMemoryTurnoverRate
fn clone(&self) -> InMemoryTurnoverRate
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 InMemoryTurnoverRate
impl Debug for InMemoryTurnoverRate
source§impl RustToCuda for InMemoryTurnoverRate
impl RustToCuda for InMemoryTurnoverRate
type CudaRepresentation = InMemoryTurnoverRateCudaRepresentation
type CudaAllocation = CombinedCudaAlloc<<Arc<[NonNegativeF64]> as RustToCuda>::CudaAllocation, NoCudaAlloc>
source§impl RustToCudaAsync for InMemoryTurnoverRate
impl RustToCudaAsync for InMemoryTurnoverRate
type CudaAllocationAsync = CombinedCudaAlloc<<Arc<[NonNegativeF64]> as RustToCudaAsync>::CudaAllocationAsync, NoCudaAlloc>
source§impl<M: MathsCore> TurnoverRate<M, InMemoryHabitat<M>> for InMemoryTurnoverRate
impl<M: MathsCore> TurnoverRate<M, InMemoryHabitat<M>> for InMemoryTurnoverRate
§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 InMemoryTurnoverRate
impl RefUnwindSafe for InMemoryTurnoverRate
impl Send for InMemoryTurnoverRate
impl Sync for InMemoryTurnoverRate
impl Unpin for InMemoryTurnoverRate
impl UnwindSafe for InMemoryTurnoverRate
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