Struct demes::UnresolvedEpoch
source · pub struct UnresolvedEpoch {
pub end_time: Option<InputTime>,
pub start_size: Option<InputDemeSize>,
pub end_size: Option<InputDemeSize>,
pub size_function: Option<SizeFunction>,
pub cloning_rate: Option<InputCloningRate>,
pub selfing_rate: Option<InputSelfingRate>,
}
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::InputDemeSize::from(1e6)),
..Default::default()
};
Type inference improves ergonomics:
let _ = demes::UnresolvedEpoch{
start_size: Some(1e6.into()),
..Default::default()
};
Fields§
§end_time: Option<InputTime>
§start_size: Option<InputDemeSize>
§end_size: Option<InputDemeSize>
§size_function: Option<SizeFunction>
§cloning_rate: Option<InputCloningRate>
§selfing_rate: Option<InputSelfingRate>
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 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<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