pub enum MpiLocalPartition<'p, R: Reporter> {
Root(Box<MpiRootPartition<'p, R>>),
Parallel(Box<MpiParallelPartition<'p, R>>),
}
Variants§
Root(Box<MpiRootPartition<'p, R>>)
Parallel(Box<MpiParallelPartition<'p, R>>)
Trait Implementations§
source§impl<'p, R: Debug + Reporter> Debug for MpiLocalPartition<'p, R>
impl<'p, R: Debug + Reporter> Debug for MpiLocalPartition<'p, R>
source§impl<'p, R: Reporter> LocalPartition<'p, R> for MpiLocalPartition<'p, R>
impl<'p, R: Reporter> LocalPartition<'p, R> for MpiLocalPartition<'p, R>
type ImmigrantIterator<'a> = ImmigrantPopIterator<'a> where R: 'a, 'p: 'a
type IsLive = False
type Reporter = MpiLocalPartition<'p, R>
fn get_reporter(&mut self) -> &mut Self::Reporter
fn get_partition(&self) -> Partition
fn migrate_individuals<'a, E: Iterator<Item = (u32, MigratingLineage)>>(
&'a mut self,
emigrants: &mut E,
emigration_mode: MigrationMode,
immigration_mode: MigrationMode
) -> Self::ImmigrantIterator<'a>where
'p: 'a,
fn reduce_vote_any(&mut self, vote: bool) -> bool
fn reduce_vote_min_time( &mut self, local_time: PositiveF64 ) -> Result<PositiveF64, PositiveF64>
fn wait_for_termination(&mut self) -> ControlFlow<(), ()>
fn report_progress_sync(&mut self, remaining: u64)
source§impl<'p, R: Reporter> Reporter for MpiLocalPartition<'p, R>
impl<'p, R: Reporter> Reporter for MpiLocalPartition<'p, R>
fn report_speciation( &mut self, speciation: &MaybeUsed<SpeciationEvent, Self::ReportSpeciation> )
type ReportSpeciation = <R as Reporter>::ReportSpeciation
fn report_dispersal( &mut self, dispersal: &MaybeUsed<DispersalEvent, Self::ReportDispersal> )
type ReportDispersal = <R as Reporter>::ReportDispersal
fn report_progress(&mut self, progress: &MaybeUsed<u64, Self::ReportProgress>)
type ReportProgress = <R as Reporter>::ReportProgress
§fn initialise(&mut self) -> Result<(), String>
fn initialise(&mut self) -> Result<(), String>
This
initialise
hook can be used to commit to make final
initialisation steps which have side effects. Read morefn finalise(self)where
Self: Sized,
§unsafe fn finalise_boxed(self: Box<Self>)
unsafe fn finalise_boxed(self: Box<Self>)
Safety Read more
Auto Trait Implementations§
impl<'p, R> Freeze for MpiLocalPartition<'p, R>
impl<'p, R> !RefUnwindSafe for MpiLocalPartition<'p, R>
impl<'p, R> !Send for MpiLocalPartition<'p, R>
impl<'p, R> !Sync for MpiLocalPartition<'p, R>
impl<'p, R> Unpin for MpiLocalPartition<'p, R>
impl<'p, R> !UnwindSafe for MpiLocalPartition<'p, R>
Blanket Implementations§
§impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
impl<Src, Scheme> ApproxFrom<Src, Scheme> for Srcwhere
Scheme: ApproxScheme,
§fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
fn approx_from(src: Src) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
§impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
impl<Dst, Src, Scheme> ApproxInto<Dst, Scheme> for Srcwhere
Dst: ApproxFrom<Src, Scheme>,
Scheme: ApproxScheme,
§fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
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, Dst> ConvAsUtil<Dst> for T
impl<T, Dst> ConvAsUtil<Dst> for T
§impl<T> ConvUtil for T
impl<T> ConvUtil for T
§fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
fn approx_as<Dst>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst>,
Approximate the subject to a given type with the default scheme.
§fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err>where
Self: Sized + ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
§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§impl<Src> TryFrom<Src> for Src
impl<Src> TryFrom<Src> for Src
§impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
impl<Src, Dst> TryInto<Dst> for Srcwhere
Dst: TryFrom<Src>,
§impl<Src> ValueFrom<Src> for Src
impl<Src> ValueFrom<Src> for Src
§fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
§impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
impl<Src, Dst> ValueInto<Dst> for Srcwhere
Dst: ValueFrom<Src>,
§fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.