We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 81e9f20 commit 1b59971Copy full SHA for 1b59971
necsim/core/src/cogs/active_lineage_sampler.rs
@@ -3,8 +3,8 @@ use core::ops::ControlFlow;
3
use necsim_core_bond::{NonNegativeF64, PositiveF64};
4
5
use super::{
6
- CoalescenceSampler, DispersalSampler, EmigrationExit, EventSampler, Habitat, ImmigrationEntry,
7
- LineageStore, MathsCore, Rng, SpeciationProbability, TurnoverRate,
+ Backup, CoalescenceSampler, DispersalSampler, EmigrationExit, EventSampler, Habitat,
+ ImmigrationEntry, LineageStore, MathsCore, Rng, SpeciationProbability, TurnoverRate,
8
};
9
10
use crate::{lineage::Lineage, simulation::partial::active_lineage_sampler::PartialSimulation};
@@ -24,7 +24,7 @@ pub trait ActiveLineageSampler<
24
N: SpeciationProbability<M, H>,
25
E: EventSampler<M, H, G, S, X, D, C, T, N>,
26
I: ImmigrationEntry<M>,
27
->: crate::cogs::Backup + core::fmt::Debug
+>: Backup + core::fmt::Debug
28
{
29
type LineageIterator<'a>: Iterator<Item = &'a Lineage>
30
where
necsim/core/src/cogs/coalescence_sampler.rs
@@ -16,7 +16,7 @@ use crate::{
16
#[allow(clippy::inline_always, clippy::inline_fn_without_body)]
17
#[contract_trait]
18
pub trait CoalescenceSampler<M: MathsCore, H: Habitat<M>, S: LineageStore<M, H>>:
19
- crate::cogs::Backup + core::fmt::Debug
+ Backup + core::fmt::Debug
20
21
#[must_use]
22
#[debug_requires(habitat.get_habitat_at_location(&location) > 0, "location is habitable")]
necsim/core/src/cogs/dispersal_sampler.rs
@@ -1,7 +1,7 @@
1
use necsim_core_bond::ClosedUnitF64;
2
use crate::{
- cogs::{MathsCore, Rng},
+ cogs::{Backup, MathsCore, Rng},
landscape::Location,
@@ -12,7 +12,7 @@ use super::Habitat;
12
#[allow(clippy::module_name_repetitions)]
13
14
pub trait DispersalSampler<M: MathsCore, H: Habitat<M>, G: Rng<M>>:
15
#[debug_requires(habitat.is_location_habitable(location), "location is habitable")]
necsim/core/src/cogs/emigration_exit.rs
- cogs::{Habitat, LineageStore, MathsCore, Rng},
+ cogs::{Backup, Habitat, LineageStore, MathsCore, Rng},
landscape::{IndexedLocation, Location},
lineage::GlobalLineageReference,
simulation::partial::emigration_exit::PartialSimulation,
@@ -15,7 +15,7 @@ use crate::{
#[allow(clippy::no_effect_underscore_binding)]
pub trait EmigrationExit<M: MathsCore, H: Habitat<M>, G: Rng<M>, S: LineageStore<M, H>>:
#[debug_ensures(match &ret {
necsim/core/src/cogs/event_sampler.rs
@@ -1,8 +1,8 @@
use necsim_core_bond::PositiveF64;
- CoalescenceSampler, DispersalSampler, EmigrationExit, Habitat, LineageStore, MathsCore, Rng,
- SpeciationProbability, TurnoverRate,
+ Backup, CoalescenceSampler, DispersalSampler, EmigrationExit, Habitat, LineageStore, MathsCore,
+ Rng, SpeciationProbability, TurnoverRate,
event::{DispersalEvent, SpeciationEvent},
@@ -28,7 +28,7 @@ pub trait EventSampler<
C: CoalescenceSampler<M, H, S>,
T: TurnoverRate<M, H>,
31
32
33
34
fn sample_event_for_lineage_at_event_time_or_emigrate<
necsim/core/src/cogs/habitat.rs
@@ -2,15 +2,15 @@ use necsim_core_bond::OffByOneU64;
use crate::landscape::{IndexedLocation, LandscapeExtent, Location};
-use super::{MathsCore, Rng};
+use super::{Backup, MathsCore, Rng};
#[allow(
clippy::inline_always,
clippy::inline_fn_without_body,
clippy::no_effect_underscore_binding
11
)]
-pub trait Habitat<M: MathsCore>: crate::cogs::Backup + core::fmt::Debug + Sized {
+pub trait Habitat<M: MathsCore>: Backup + core::fmt::Debug {
type LocationIterator<'a>: Iterator<Item = Location> + 'a
Self: 'a;
necsim/core/src/cogs/immigration_entry.rs
@@ -1,10 +1,10 @@
use crate::lineage::MigratingLineage;
-use super::MathsCore;
+use super::{Backup, MathsCore};
-pub trait ImmigrationEntry<M: MathsCore>: crate::cogs::Backup + core::fmt::Debug {
+pub trait ImmigrationEntry<M: MathsCore>: Backup + core::fmt::Debug {
fn next_optional_immigration(&mut self) -> Option<MigratingLineage>;
necsim/core/src/cogs/lineage_reference.rs
@@ -1,9 +1,9 @@
use core::hash::Hash;
-use super::{Habitat, MathsCore};
+use super::{Backup, Habitat, MathsCore};
pub trait LineageReference<M: MathsCore, H: Habitat<M>>:
- crate::cogs::Backup + PartialEq + Eq + Hash + core::fmt::Debug
+ Backup + PartialEq + Eq + Hash + core::fmt::Debug
}
necsim/core/src/cogs/lineage_store.rs
@@ -1,16 +1,14 @@
use core::ops::Index;
-use super::{Habitat, LineageReference, MathsCore};
+use super::{Backup, Habitat, LineageReference, MathsCore};
lineage::{GlobalLineageReference, Lineage},
-pub trait LineageStore<M: MathsCore, H: Habitat<M>>:
- crate::cogs::Backup + Sized + core::fmt::Debug
-{
+pub trait LineageStore<M: MathsCore, H: Habitat<M>>: Backup + Sized + core::fmt::Debug {
type LocalLineageReference: LineageReference<M, H>;
necsim/core/src/cogs/rng.rs
@@ -7,7 +7,7 @@ use crate::{
landscape::IndexedLocation,
-pub trait Rng<M: MathsCore>: Backup + Clone + core::fmt::Debug {
+pub trait Rng<M: MathsCore>: Backup + core::fmt::Debug {
type Generator: RngCore;
type Sampler;
@@ -21,9 +21,7 @@ pub trait Rng<M: MathsCore>: Backup + Clone + core::fmt::Debug {
23
-pub trait RngCore:
- crate::cogs::Backup + Sized + Clone + core::fmt::Debug + Serialize + DeserializeOwned
+pub trait RngCore: Backup + Sized + core::fmt::Debug + Serialize + DeserializeOwned {
type Seed: AsMut<[u8]> + Default + Sized;
0 commit comments