pub enum MonolithicLocalPartition<R: Reporter> {
Live(Box<LiveMonolithicLocalPartition<R>>),
Recorded(Box<RecordedMonolithicLocalPartition<R>>),
}
Variants§
Live(Box<LiveMonolithicLocalPartition<R>>)
Recorded(Box<RecordedMonolithicLocalPartition<R>>)
Trait Implementations§
source§impl<R: Debug + Reporter> Debug for MonolithicLocalPartition<R>
impl<R: Debug + Reporter> Debug for MonolithicLocalPartition<R>
source§impl<'p, R: Reporter> LocalPartition<'p, R> for MonolithicLocalPartition<R>
impl<'p, R: Reporter> LocalPartition<'p, R> for MonolithicLocalPartition<R>
type ImmigrantIterator<'a> = ImmigrantPopIterator<'a> where R: 'a, 'p: 'a
type IsLive = True
type Reporter = MonolithicLocalPartition<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<R: Reporter> Reporter for MonolithicLocalPartition<R>
impl<R: Reporter> Reporter for MonolithicLocalPartition<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<R> Freeze for MonolithicLocalPartition<R>
impl<R> RefUnwindSafe for MonolithicLocalPartition<R>where
R: RefUnwindSafe,
impl<R> Send for MonolithicLocalPartition<R>where
R: Send,
impl<R> Sync for MonolithicLocalPartition<R>where
R: Sync,
impl<R> Unpin for MonolithicLocalPartition<R>
impl<R> UnwindSafe for MonolithicLocalPartition<R>where
R: UnwindSafe,
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 more