Struct demes::InputCloningRate
source · #[repr(transparent)]pub struct InputCloningRate(/* private fields */);
Expand description
Input value for CloningRate
, used when loading or building graphs.
Examples
let t = demes::InputCloningRate::from(1.0);
assert_eq!(t, 1.0);
let t = t - 1.0;
assert_eq!(t, 0.0);
let t = 1.0 + t;
assert_eq!(t, 1.0);
Trait Implementations§
source§impl Add<InputCloningRate> for InputCloningRate
impl Add<InputCloningRate> for InputCloningRate
source§impl Add<InputCloningRate> for f64
impl Add<InputCloningRate> for f64
source§impl Add<f64> for InputCloningRate
impl Add<f64> for InputCloningRate
source§impl Clone for InputCloningRate
impl Clone for InputCloningRate
source§fn clone(&self) -> InputCloningRate
fn clone(&self) -> InputCloningRate
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 InputCloningRate
impl Debug for InputCloningRate
source§impl Default for InputCloningRate
impl Default for InputCloningRate
source§impl<'de> Deserialize<'de> for InputCloningRate
impl<'de> Deserialize<'de> for InputCloningRate
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 Div<InputCloningRate> for InputCloningRate
impl Div<InputCloningRate> for InputCloningRate
source§impl Div<InputCloningRate> for f64
impl Div<InputCloningRate> for f64
source§impl Div<f64> for InputCloningRate
impl Div<f64> for InputCloningRate
source§impl From<&f64> for InputCloningRate
impl From<&f64> for InputCloningRate
source§impl From<InputCloningRate> for f64
impl From<InputCloningRate> for f64
source§fn from(value: InputCloningRate) -> Self
fn from(value: InputCloningRate) -> Self
Converts to this type from the input type.
source§impl From<f64> for InputCloningRate
impl From<f64> for InputCloningRate
source§impl Mul<InputCloningRate> for InputCloningRate
impl Mul<InputCloningRate> for InputCloningRate
source§impl Mul<InputCloningRate> for f64
impl Mul<InputCloningRate> for f64
source§impl Mul<f64> for InputCloningRate
impl Mul<f64> for InputCloningRate
source§impl PartialEq<InputCloningRate> for InputCloningRate
impl PartialEq<InputCloningRate> for InputCloningRate
source§fn eq(&self, other: &InputCloningRate) -> bool
fn eq(&self, other: &InputCloningRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<InputCloningRate> for f64
impl PartialEq<InputCloningRate> for f64
source§fn eq(&self, other: &InputCloningRate) -> bool
fn eq(&self, other: &InputCloningRate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<f64> for InputCloningRate
impl PartialEq<f64> for InputCloningRate
source§impl PartialOrd<InputCloningRate> for InputCloningRate
impl PartialOrd<InputCloningRate> for InputCloningRate
source§fn partial_cmp(&self, other: &InputCloningRate) -> Option<Ordering>
fn partial_cmp(&self, other: &InputCloningRate) -> 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 Serialize for InputCloningRate
impl Serialize for InputCloningRate
source§impl Sub<InputCloningRate> for InputCloningRate
impl Sub<InputCloningRate> for InputCloningRate
source§impl Sub<InputCloningRate> for f64
impl Sub<InputCloningRate> for f64
source§impl Sub<f64> for InputCloningRate
impl Sub<f64> for InputCloningRate
source§impl TryFrom<InputCloningRate> for CloningRate
impl TryFrom<InputCloningRate> for CloningRate
§type Error = DemesError
type Error = DemesError
The type returned in the event of a conversion error.
impl Copy for InputCloningRate
impl StructuralPartialEq for InputCloningRate
Auto Trait Implementations§
impl RefUnwindSafe for InputCloningRate
impl Send for InputCloningRate
impl Sync for InputCloningRate
impl Unpin for InputCloningRate
impl UnwindSafe for InputCloningRate
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