Struct demes::UnresolvedEpoch
source · pub struct UnresolvedEpoch {
pub end_time: Option<Time>,
pub start_size: Option<DemeSize>,
pub end_size: Option<DemeSize>,
pub size_function: Option<SizeFunction>,
pub cloning_rate: Option<CloningRate>,
pub selfing_rate: Option<SelfingRate>,
}Expand description
HDM representation of an epoch.
Direct construction of this type is useful in:
Examples
This type supports field initialization with defaults:
let _ = demes::UnresolvedEpoch{
start_size: Some(demes::DemeSize::from(1e6)),
..Default::default()
};Fields§
§end_time: Option<Time>§start_size: Option<DemeSize>§end_size: Option<DemeSize>§size_function: Option<SizeFunction>§cloning_rate: Option<CloningRate>§selfing_rate: Option<SelfingRate>Trait Implementations§
source§impl Clone for UnresolvedEpoch
impl Clone for UnresolvedEpoch
source§fn clone(&self) -> UnresolvedEpoch
fn clone(&self) -> UnresolvedEpoch
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for UnresolvedEpoch
impl Debug for UnresolvedEpoch
source§impl Default for UnresolvedEpoch
impl Default for UnresolvedEpoch
source§fn default() -> UnresolvedEpoch
fn default() -> UnresolvedEpoch
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for UnresolvedEpoch
impl<'de> Deserialize<'de> for UnresolvedEpoch
source§fn 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
source§impl PartialEq<UnresolvedEpoch> for UnresolvedEpoch
impl PartialEq<UnresolvedEpoch> for UnresolvedEpoch
source§fn eq(&self, other: &UnresolvedEpoch) -> bool
fn eq(&self, other: &UnresolvedEpoch) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for UnresolvedEpoch
impl Eq for UnresolvedEpoch
impl StructuralEq for UnresolvedEpoch
impl StructuralPartialEq for UnresolvedEpoch
Auto Trait Implementations§
impl RefUnwindSafe for UnresolvedEpoch
impl Send for UnresolvedEpoch
impl Sync for UnresolvedEpoch
impl Unpin for UnresolvedEpoch
impl UnwindSafe for UnresolvedEpoch
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.