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
sourceimpl Clone for UnresolvedEpoch
impl Clone for UnresolvedEpoch
sourcefn clone(&self) -> UnresolvedEpoch
fn clone(&self) -> UnresolvedEpoch
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 UnresolvedEpoch
impl Debug for UnresolvedEpoch
sourceimpl Default for UnresolvedEpoch
impl Default for UnresolvedEpoch
sourcefn default() -> UnresolvedEpoch
fn default() -> UnresolvedEpoch
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for UnresolvedEpoch
impl<'de> Deserialize<'de> for UnresolvedEpoch
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<UnresolvedEpoch> for UnresolvedEpoch
impl PartialEq<UnresolvedEpoch> for UnresolvedEpoch
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &UnresolvedEpoch) -> bool
fn ne(&self, other: &UnresolvedEpoch) -> bool
This method tests for !=
.
sourceimpl Serialize for UnresolvedEpoch
impl Serialize for UnresolvedEpoch
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
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.