Struct demes::UnresolvedMigration
source · [−]pub struct UnresolvedMigration {
pub demes: Option<Vec<String>>,
pub source: Option<String>,
pub dest: Option<String>,
pub start_time: Option<Time>,
pub end_time: Option<Time>,
pub rate: Option<MigrationRate>,
}
Expand description
An unresolved migration epoch.
All input migrations are resolved to AsymmetricMigration
instances.
Examples
GraphBuilder
This type supports member field initialization using defaults. This form of initalization is used in:
let _ = demes::UnresolvedMigration{source: Some("A".to_string()),
dest: Some("B".to_string()),
rate: Some(demes::MigrationRate::from(0.2)),
..Default::default()
};
Fields
demes: Option<Vec<String>>
The demes involved in symmetric migration epochs
source: Option<String>
The source deme of an asymmetric migration epoch
dest: Option<String>
The destination deme of an asymmetric migration epoch
start_time: Option<Time>
The start time of a migration epoch
end_time: Option<Time>
The end time of a migration epoch
rate: Option<MigrationRate>
The rate during a migration epoch
Trait Implementations
sourceimpl Clone for UnresolvedMigration
impl Clone for UnresolvedMigration
sourcefn clone(&self) -> UnresolvedMigration
fn clone(&self) -> UnresolvedMigration
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 UnresolvedMigration
impl Debug for UnresolvedMigration
sourceimpl Default for UnresolvedMigration
impl Default for UnresolvedMigration
sourcefn default() -> UnresolvedMigration
fn default() -> UnresolvedMigration
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UnresolvedMigration
impl<'de> Deserialize<'de> for UnresolvedMigration
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<UnresolvedMigration> for UnresolvedMigration
impl PartialEq<UnresolvedMigration> for UnresolvedMigration
sourcefn eq(&self, other: &UnresolvedMigration) -> bool
fn eq(&self, other: &UnresolvedMigration) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &UnresolvedMigration) -> bool
fn ne(&self, other: &UnresolvedMigration) -> bool
This method tests for !=
.
sourceimpl Serialize for UnresolvedMigration
impl Serialize for UnresolvedMigration
impl Eq for UnresolvedMigration
impl StructuralEq for UnresolvedMigration
impl StructuralPartialEq for UnresolvedMigration
Auto Trait Implementations
impl RefUnwindSafe for UnresolvedMigration
impl Send for UnresolvedMigration
impl Sync for UnresolvedMigration
impl Unpin for UnresolvedMigration
impl UnwindSafe for UnresolvedMigration
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.