Struct demes::GenerationTime
source · [−]#[repr(transparent)]pub struct GenerationTime(_);
Expand description
Generation time.
If TimeUnits
are in generations, this value
must be 1.0.
Trait Implementations
sourceimpl Clone for GenerationTime
impl Clone for GenerationTime
sourcefn clone(&self) -> GenerationTime
fn clone(&self) -> GenerationTime
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 GenerationTime
impl Debug for GenerationTime
sourceimpl<'de> Deserialize<'de> for GenerationTime
impl<'de> Deserialize<'de> for GenerationTime
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 Display for GenerationTime
impl Display for GenerationTime
sourceimpl From<GenerationTime> for f64
impl From<GenerationTime> for f64
sourcefn from(value: GenerationTime) -> f64
fn from(value: GenerationTime) -> f64
Converts to this type from the input type.
sourceimpl From<f64> for GenerationTime
impl From<f64> for GenerationTime
sourceimpl Ord for GenerationTime
impl Ord for GenerationTime
sourceimpl PartialEq<GenerationTime> for GenerationTime
impl PartialEq<GenerationTime> for GenerationTime
sourceimpl PartialEq<GenerationTime> for f64
impl PartialEq<GenerationTime> for f64
sourceimpl PartialEq<f64> for GenerationTime
impl PartialEq<f64> for GenerationTime
sourceimpl PartialOrd<GenerationTime> for GenerationTime
impl PartialOrd<GenerationTime> for GenerationTime
sourcefn partial_cmp(&self, other: &Self) -> Option<Ordering>
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<GenerationTime> for f64
impl PartialOrd<GenerationTime> for f64
sourcefn partial_cmp(&self, other: &GenerationTime) -> Option<Ordering>
fn partial_cmp(&self, other: &GenerationTime) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl PartialOrd<f64> for GenerationTime
impl PartialOrd<f64> for GenerationTime
sourcefn partial_cmp(&self, other: &f64) -> Option<Ordering>
fn partial_cmp(&self, other: &f64) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Serialize for GenerationTime
impl Serialize for GenerationTime
impl Copy for GenerationTime
impl Eq for GenerationTime
Auto Trait Implementations
impl RefUnwindSafe for GenerationTime
impl Send for GenerationTime
impl Sync for GenerationTime
impl Unpin for GenerationTime
impl UnwindSafe for GenerationTime
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.