Struct demes::AsymmetricMigration
source · [−]pub struct AsymmetricMigration { /* private fields */ }
Expand description
An asymmetric migration epoch.
All input migrations are resolved to asymmetric migration instances.
Implementations
sourceimpl AsymmetricMigration
impl AsymmetricMigration
sourcepub fn rate(&self) -> MigrationRate
pub fn rate(&self) -> MigrationRate
Get the resolved migration rate
sourcepub fn start_time(&self) -> Time
pub fn start_time(&self) -> Time
Resolved start Time
of the migration epoch
sourcepub fn time_interval(&self) -> TimeInterval
pub fn time_interval(&self) -> TimeInterval
Resolved time interval of the migration epoch
Trait Implementations
sourceimpl Clone for AsymmetricMigration
impl Clone for AsymmetricMigration
sourcefn clone(&self) -> AsymmetricMigration
fn clone(&self) -> AsymmetricMigration
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for AsymmetricMigration
impl Debug for AsymmetricMigration
sourceimpl<'de> Deserialize<'de> for AsymmetricMigration
impl<'de> Deserialize<'de> for AsymmetricMigration
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<AsymmetricMigration> for AsymmetricMigration
impl PartialEq<AsymmetricMigration> for AsymmetricMigration
sourcefn eq(&self, other: &AsymmetricMigration) -> bool
fn eq(&self, other: &AsymmetricMigration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &AsymmetricMigration) -> bool
fn ne(&self, other: &AsymmetricMigration) -> bool
This method tests for !=
.
sourceimpl Serialize for AsymmetricMigration
impl Serialize for AsymmetricMigration
impl Eq for AsymmetricMigration
impl StructuralEq for AsymmetricMigration
impl StructuralPartialEq for AsymmetricMigration
Auto Trait Implementations
impl RefUnwindSafe for AsymmetricMigration
impl Send for AsymmetricMigration
impl Sync for AsymmetricMigration
impl Unpin for AsymmetricMigration
impl UnwindSafe for AsymmetricMigration
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.