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