Struct necsim_impls_no_std::cogs::dispersal_sampler::trespassing::TrespassingDispersalSampler
source · pub struct TrespassingDispersalSampler<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> { /* private fields */ }
Implementations§
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> TrespassingDispersalSampler<M, H, G, D, T>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> TrespassingDispersalSampler<M, H, G, D, T>
Trait Implementations§
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> Backup for TrespassingDispersalSampler<M, H, G, D, T>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> Backup for TrespassingDispersalSampler<M, H, G, D, T>
unsafe fn backup_unchecked(&self) -> Self
fn backup(&self) -> BackedUp<Self>
source§impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>, D: Debug + DispersalSampler<M, H, G>, T: Debug + AntiTrespassingDispersalSampler<M, H, G>> Debug for TrespassingDispersalSampler<M, H, G, D, T>
impl<M: Debug + MathsCore, H: Debug + Habitat<M>, G: Debug + RngCore<M>, D: Debug + DispersalSampler<M, H, G>, T: Debug + AntiTrespassingDispersalSampler<M, H, G>> Debug for TrespassingDispersalSampler<M, H, G, D, T>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> DispersalSampler<M, H, G> for TrespassingDispersalSampler<M, H, G, D, T>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: DispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> DispersalSampler<M, H, G> for TrespassingDispersalSampler<M, H, G, D, T>
source§impl<M: MathsCore, H, G, D, T> RustToCuda for TrespassingDispersalSampler<M, H, G, D, T>where
T: RustToCuda + AntiTrespassingDispersalSampler<M, H, G>,
H: RustToCuda + Habitat<M>,
G: RustToCuda + RngCore<M>,
D: RustToCuda + DispersalSampler<M, H, G>,
impl<M: MathsCore, H, G, D, T> RustToCuda for TrespassingDispersalSampler<M, H, G, D, T>where
T: RustToCuda + AntiTrespassingDispersalSampler<M, H, G>,
H: RustToCuda + Habitat<M>,
G: RustToCuda + RngCore<M>,
D: RustToCuda + DispersalSampler<M, H, G>,
type CudaRepresentation = TrespassingDispersalSamplerCudaRepresentation<M, H, G, D, T>
type CudaAllocation = CombinedCudaAlloc<<T as RustToCuda>::CudaAllocation, CombinedCudaAlloc<<D as RustToCuda>::CudaAllocation, NoCudaAlloc>>
source§impl<M: MathsCore, H, G, D, T> RustToCudaAsync for TrespassingDispersalSampler<M, H, G, D, T>where
T: RustToCudaAsync + AntiTrespassingDispersalSampler<M, H, G>,
H: RustToCudaAsync + Habitat<M>,
G: RustToCudaAsync + RngCore<M>,
D: RustToCudaAsync + DispersalSampler<M, H, G>,
impl<M: MathsCore, H, G, D, T> RustToCudaAsync for TrespassingDispersalSampler<M, H, G, D, T>where
T: RustToCudaAsync + AntiTrespassingDispersalSampler<M, H, G>,
H: RustToCudaAsync + Habitat<M>,
G: RustToCudaAsync + RngCore<M>,
D: RustToCudaAsync + DispersalSampler<M, H, G>,
type CudaAllocationAsync = CombinedCudaAlloc<<T as RustToCudaAsync>::CudaAllocationAsync, CombinedCudaAlloc<<D as RustToCudaAsync>::CudaAllocationAsync, NoCudaAlloc>>
source§impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: SeparableDispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> SeparableDispersalSampler<M, H, G> for TrespassingDispersalSampler<M, H, G, D, T>
impl<M: MathsCore, H: Habitat<M>, G: RngCore<M>, D: SeparableDispersalSampler<M, H, G>, T: AntiTrespassingDispersalSampler<M, H, G>> SeparableDispersalSampler<M, H, G> for TrespassingDispersalSampler<M, H, G, D, T>
source§fn sample_non_self_dispersal_from_location(
&self,
location: &Location,
habitat: &H,
rng: &mut G
) -> Location
fn sample_non_self_dispersal_from_location( &self, location: &Location, habitat: &H, rng: &mut G ) -> Location
§Contracts
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
fn get_self_dispersal_probability_at_location( &self, location: &Location, habitat: &H ) -> ClosedUnitF64
Contracts Read more
Auto Trait Implementations§
impl<M, H, G, D, T> Freeze for TrespassingDispersalSampler<M, H, G, D, T>
impl<M, H, G, D, T> RefUnwindSafe for TrespassingDispersalSampler<M, H, G, D, T>
impl<M, H, G, D, T> Send for TrespassingDispersalSampler<M, H, G, D, T>
impl<M, H, G, D, T> Sync for TrespassingDispersalSampler<M, H, G, D, T>
impl<M, H, G, D, T> Unpin for TrespassingDispersalSampler<M, H, G, D, T>
impl<M, H, G, D, T> UnwindSafe for TrespassingDispersalSampler<M, H, G, D, T>
Blanket Implementations§
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