pub struct Deme(_);
Expand description
A resolved deme.
Implementations
sourceimpl Deme
impl Deme
sourcepub fn time_interval(&self) -> TimeInterval
pub fn time_interval(&self) -> TimeInterval
The resolved time interval
sourcepub fn start_time(&self) -> Time
pub fn start_time(&self) -> Time
The resolved start time
sourcepub fn num_ancestors(&self) -> usize
pub fn num_ancestors(&self) -> usize
Number of ancestors
sourcepub fn ancestor_names(&self) -> Ref<'_, [String]>
pub fn ancestor_names(&self) -> Ref<'_, [String]>
Names of ancestor demes.
Empty of no ancestors.
sourcepub fn description(&self) -> String
pub fn description(&self) -> String
Description string
sourcepub fn proportions(&self) -> Ref<'_, [Proportion]>
pub fn proportions(&self) -> Ref<'_, [Proportion]>
Resolved proportions
sourcepub fn ancestors(&self) -> Ref<'_, HashMap<String, Deme>>
pub fn ancestors(&self) -> Ref<'_, HashMap<String, Deme>>
Hash map of ancestor name to ancestor deme
sourcepub fn start_size(&self) -> DemeSize
pub fn start_size(&self) -> DemeSize
Resolved start size
sourcepub fn start_sizes(&self) -> Vec<DemeSize>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn start_sizes(&self) -> Vec<DemeSize>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Vector of resolved start sizes.
The values are obtained by traversing all epochs.
sourcepub fn end_sizes(&self) -> Vec<DemeSize>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn end_sizes(&self) -> Vec<DemeSize>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Vector of resolved start sizes
The values are obtained by traversing all epochs.
sourcepub fn end_times(&self) -> Vec<Time>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn end_times(&self) -> Vec<Time>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Vector of resolved end times
The values are obtained by traversing all epochs.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Deme
impl<'de> Deserialize<'de> for Deme
sourcefn 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
impl Eq for Deme
Auto Trait Implementations
impl !RefUnwindSafe for Deme
impl !Send for Deme
impl !Sync for Deme
impl Unpin for Deme
impl !UnwindSafe for Deme
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.