pub struct IndependentEmigrationExit<M: MathsCore, H: Habitat<M>, C: Decomposition<M, H>, E: EmigrationChoice<M, H>> { /* private fields */ }

Implementations§

source§

impl<M: MathsCore, H: Habitat<M>, C: Decomposition<M, H>, E: EmigrationChoice<M, H>> IndependentEmigrationExit<M, H, C, E>

source

pub fn new(decomposition: C, choice: E) -> Self

source

pub fn len(&self) -> usize

source

pub fn is_empty(&self) -> bool

source

pub fn take(&mut self) -> Option<(u32, MigratingLineage)>

Trait Implementations§

source§

impl<M: MathsCore, H: Habitat<M>, C: Decomposition<M, H>, E: EmigrationChoice<M, H>> Backup for IndependentEmigrationExit<M, H, C, E>

§

unsafe fn backup_unchecked(&self) -> Self

§

fn backup(&self) -> BackedUp<Self>

source§

impl<M: Debug + MathsCore, H: Debug + Habitat<M>, C: Debug + Decomposition<M, H>, E: Debug + EmigrationChoice<M, H>> Debug for IndependentEmigrationExit<M, H, C, E>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<M: MathsCore, H: Habitat<M>, C: Decomposition<M, H>, E: EmigrationChoice<M, H>, G: RngCore<M>> EmigrationExit<M, H, G, IndependentLineageStore<M, H>> for IndependentEmigrationExit<M, H, C, E>

§

fn optionally_emigrate( &mut self, global_reference: GlobalLineageReference, dispersal_origin: IndexedLocation, dispersal_target: Location, prior_time: NonNegativeF64, event_time: PositiveF64, simulation: &mut PartialSimulation<M, H, G, S>, rng: &mut G ) -> Option<(GlobalLineageReference, IndexedLocation, Location, NonNegativeF64, PositiveF64)>

Contracts Read more

Auto Trait Implementations§

§

impl<M, H, C, E> Freeze for IndependentEmigrationExit<M, H, C, E>
where C: Freeze, E: Freeze,

§

impl<M, H, C, E> RefUnwindSafe for IndependentEmigrationExit<M, H, C, E>

§

impl<M, H, C, E> Send for IndependentEmigrationExit<M, H, C, E>
where C: Send, E: Send, H: Send,

§

impl<M, H, C, E> Sync for IndependentEmigrationExit<M, H, C, E>
where C: Sync, E: Sync, H: Sync,

§

impl<M, H, C, E> Unpin for IndependentEmigrationExit<M, H, C, E>
where C: Unpin, E: Unpin, M: Unpin, H: Unpin,

§

impl<M, H, C, E> UnwindSafe for IndependentEmigrationExit<M, H, C, E>

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> ExtractDiscriminant for T

§

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
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<T> Erased for T

source§

impl<T> PortableBitSemantics for T
where T: PortableBitSemantics + ?Sized,

source§

impl<T> StackOnly for T
where T: StackOnly,