Struct demes::GenerationTime
source · #[repr(transparent)]pub struct GenerationTime(/* private fields */);
Expand description
Generation time.
If TimeUnits
are in generations, this value
must be 1.0.
Trait Implementations§
source§impl Add<GenerationTime> for GenerationTime
impl Add<GenerationTime> for GenerationTime
source§impl Add<GenerationTime> for f64
impl Add<GenerationTime> for f64
§type Output = Option<GenerationTime>
type Output = Option<GenerationTime>
The resulting type after applying the
+
operator.source§impl Add<f64> for GenerationTime
impl Add<f64> for GenerationTime
source§impl Clone for GenerationTime
impl Clone for GenerationTime
source§fn clone(&self) -> GenerationTime
fn clone(&self) -> GenerationTime
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 GenerationTime
impl Debug for GenerationTime
source§impl<'de> Deserialize<'de> for GenerationTime
impl<'de> Deserialize<'de> for GenerationTime
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 Display for GenerationTime
impl Display for GenerationTime
source§impl Div<GenerationTime> for GenerationTime
impl Div<GenerationTime> for GenerationTime
source§impl Div<GenerationTime> for f64
impl Div<GenerationTime> for f64
§type Output = Option<GenerationTime>
type Output = Option<GenerationTime>
The resulting type after applying the
/
operator.source§impl Div<f64> for GenerationTime
impl Div<f64> for GenerationTime
source§impl From<GenerationTime> for f64
impl From<GenerationTime> for f64
source§fn from(value: GenerationTime) -> f64
fn from(value: GenerationTime) -> f64
Converts to this type from the input type.
source§impl Mul<GenerationTime> for GenerationTime
impl Mul<GenerationTime> for GenerationTime
source§impl Mul<GenerationTime> for f64
impl Mul<GenerationTime> for f64
§type Output = Option<GenerationTime>
type Output = Option<GenerationTime>
The resulting type after applying the
*
operator.source§impl Mul<f64> for GenerationTime
impl Mul<f64> for GenerationTime
source§impl Ord for GenerationTime
impl Ord for GenerationTime
source§impl PartialEq<GenerationTime> for GenerationTime
impl PartialEq<GenerationTime> for GenerationTime
source§impl PartialEq<GenerationTime> for f64
impl PartialEq<GenerationTime> for f64
source§fn eq(&self, other: &GenerationTime) -> bool
fn eq(&self, other: &GenerationTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<f64> for GenerationTime
impl PartialEq<f64> for GenerationTime
source§impl PartialOrd<GenerationTime> for GenerationTime
impl PartialOrd<GenerationTime> for GenerationTime
1.0.0 · source§fn 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 moresource§impl PartialOrd<GenerationTime> for f64
impl PartialOrd<GenerationTime> for f64
source§fn partial_cmp(&self, other: &GenerationTime) -> Option<Ordering>
fn partial_cmp(&self, other: &GenerationTime) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§impl PartialOrd<f64> for GenerationTime
impl PartialOrd<f64> for GenerationTime
1.0.0 · source§fn 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 moresource§impl Serialize for GenerationTime
impl Serialize for GenerationTime
source§impl Sub<GenerationTime> for GenerationTime
impl Sub<GenerationTime> for GenerationTime
source§impl Sub<GenerationTime> for f64
impl Sub<GenerationTime> for f64
§type Output = Option<GenerationTime>
type Output = Option<GenerationTime>
The resulting type after applying the
-
operator.source§impl Sub<f64> for GenerationTime
impl Sub<f64> for GenerationTime
source§impl TryFrom<InputGenerationTime> for GenerationTime
impl TryFrom<InputGenerationTime> for GenerationTime
§type Error = DemesError
type Error = DemesError
The type returned in the event of a conversion error.
source§impl TryFrom<f64> for GenerationTime
impl TryFrom<f64> for GenerationTime
§type Error = DemesError
type Error = DemesError
The type returned in the event of a conversion error.
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§
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
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.