Struct demes_forward::ForwardGraph
source · [−]pub struct ForwardGraph { /* private fields */ }Implementations
sourceimpl ForwardGraph
impl ForwardGraph
pub fn new<F: IntoForwardTime>(
graph: Graph,
burnin_time: F,
rounding: Option<RoundTimeToInteger>
) -> Result<Self, DemesForwardError>
pub fn update_state<F: IntoForwardTime>(
&mut self,
parental_generation_time: F
) -> Result<(), DemesForwardError>
pub fn num_demes_in_model(&self) -> usize
pub fn ancestry_proportions(&self, offspring_deme: usize) -> Option<&[f64]>
pub fn cloning_rates(&self) -> Option<&[CloningRate]>
pub fn selfing_rates(&self) -> Option<&[SelfingRate]>
pub fn last_time_updated(&self) -> Option<ForwardTime>
pub fn end_time(&self) -> ForwardTime
pub fn time_iterator(&self) -> impl Iterator<Item = ForwardTime>
pub fn parental_deme_sizes(&self) -> Option<&[DemeSize]>
pub fn offspring_deme_sizes(&self) -> Option<&[DemeSize]>
pub fn any_extant_parental_demes(&self) -> bool
pub fn any_extant_offspring_demes(&self) -> bool
pub fn num_extant_parental_demes(&self) -> usize
pub fn num_extant_offspring_demes(&self) -> usize
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ForwardGraph
impl !Send for ForwardGraph
impl !Sync for ForwardGraph
impl Unpin for ForwardGraph
impl !UnwindSafe for ForwardGraph
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