Struct demes::MigrationRate
source · #[repr(transparent)]pub struct MigrationRate(/* private fields */);
Expand description
A migration rate.
Trait Implementations§
source§impl Add<MigrationRate> for MigrationRate
impl Add<MigrationRate> for MigrationRate
source§impl Add<MigrationRate> for f64
impl Add<MigrationRate> for f64
§type Output = Option<MigrationRate>
type Output = Option<MigrationRate>
The resulting type after applying the
+
operator.source§impl Add<f64> for MigrationRate
impl Add<f64> for MigrationRate
source§impl Clone for MigrationRate
impl Clone for MigrationRate
source§fn clone(&self) -> MigrationRate
fn clone(&self) -> MigrationRate
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 MigrationRate
impl Debug for MigrationRate
source§impl<'de> Deserialize<'de> for MigrationRate
impl<'de> Deserialize<'de> for MigrationRate
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 MigrationRate
impl Display for MigrationRate
source§impl Div<MigrationRate> for MigrationRate
impl Div<MigrationRate> for MigrationRate
source§impl Div<MigrationRate> for f64
impl Div<MigrationRate> for f64
§type Output = Option<MigrationRate>
type Output = Option<MigrationRate>
The resulting type after applying the
/
operator.source§impl Div<f64> for MigrationRate
impl Div<f64> for MigrationRate
source§impl From<MigrationRate> for f64
impl From<MigrationRate> for f64
source§fn from(value: MigrationRate) -> f64
fn from(value: MigrationRate) -> f64
Converts to this type from the input type.
source§impl Mul<MigrationRate> for MigrationRate
impl Mul<MigrationRate> for MigrationRate
source§impl Mul<MigrationRate> for f64
impl Mul<MigrationRate> for f64
§type Output = Option<MigrationRate>
type Output = Option<MigrationRate>
The resulting type after applying the
*
operator.source§impl Mul<f64> for MigrationRate
impl Mul<f64> for MigrationRate
source§impl Ord for MigrationRate
impl Ord for MigrationRate
source§impl PartialEq<MigrationRate> for MigrationRate
impl PartialEq<MigrationRate> for MigrationRate
source§impl PartialEq<MigrationRate> for f64
impl PartialEq<MigrationRate> for f64
source§fn eq(&self, other: &MigrationRate) -> bool
fn eq(&self, other: &MigrationRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<f64> for MigrationRate
impl PartialEq<f64> for MigrationRate
source§impl PartialOrd<MigrationRate> for MigrationRate
impl PartialOrd<MigrationRate> for MigrationRate
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<MigrationRate> for f64
impl PartialOrd<MigrationRate> for f64
source§fn partial_cmp(&self, other: &MigrationRate) -> Option<Ordering>
fn partial_cmp(&self, other: &MigrationRate) -> 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 MigrationRate
impl PartialOrd<f64> for MigrationRate
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 MigrationRate
impl Serialize for MigrationRate
source§impl Sub<MigrationRate> for MigrationRate
impl Sub<MigrationRate> for MigrationRate
source§impl Sub<MigrationRate> for f64
impl Sub<MigrationRate> for f64
§type Output = Option<MigrationRate>
type Output = Option<MigrationRate>
The resulting type after applying the
-
operator.source§impl Sub<f64> for MigrationRate
impl Sub<f64> for MigrationRate
source§impl TryFrom<InputMigrationRate> for MigrationRate
impl TryFrom<InputMigrationRate> for MigrationRate
§type Error = DemesError
type Error = DemesError
The type returned in the event of a conversion error.
source§impl TryFrom<f64> for MigrationRate
impl TryFrom<f64> for MigrationRate
impl Copy for MigrationRate
impl Eq for MigrationRate
Auto Trait Implementations§
impl RefUnwindSafe for MigrationRate
impl Send for MigrationRate
impl Sync for MigrationRate
impl Unpin for MigrationRate
impl UnwindSafe for MigrationRate
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.