Struct demes_forward::CurrentSize
source · #[repr(transparent)]pub struct CurrentSize(/* private fields */);
Expand description
The current size of a deme.
Unlike demes::DemeSize
, this type
allows for values of 0.0, which means
that there are no individuals in the
deme at the current time.
Trait Implementations§
source§impl Clone for CurrentSize
impl Clone for CurrentSize
source§fn clone(&self) -> CurrentSize
fn clone(&self) -> CurrentSize
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 CurrentSize
impl Debug for CurrentSize
source§impl PartialEq<CurrentSize> for CurrentSize
impl PartialEq<CurrentSize> for CurrentSize
source§fn eq(&self, other: &CurrentSize) -> bool
fn eq(&self, other: &CurrentSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<CurrentSize> for f64
impl PartialEq<CurrentSize> for f64
source§fn eq(&self, other: &CurrentSize) -> bool
fn eq(&self, other: &CurrentSize) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialEq<f64> for CurrentSize
impl PartialEq<f64> for CurrentSize
source§impl PartialOrd<CurrentSize> for CurrentSize
impl PartialOrd<CurrentSize> for CurrentSize
source§fn partial_cmp(&self, other: &CurrentSize) -> Option<Ordering>
fn partial_cmp(&self, other: &CurrentSize) -> 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<CurrentSize> for f64
impl PartialOrd<CurrentSize> for f64
source§fn partial_cmp(&self, other: &CurrentSize) -> Option<Ordering>
fn partial_cmp(&self, other: &CurrentSize) -> 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 CurrentSize
impl PartialOrd<f64> for CurrentSize
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 TryFrom<DemeSize> for CurrentSize
impl TryFrom<DemeSize> for CurrentSize
source§impl TryFrom<f64> for CurrentSize
impl TryFrom<f64> for CurrentSize
impl Copy for CurrentSize
impl StructuralPartialEq for CurrentSize
Auto Trait Implementations§
impl RefUnwindSafe for CurrentSize
impl Send for CurrentSize
impl Sync for CurrentSize
impl Unpin for CurrentSize
impl UnwindSafe for CurrentSize
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