pub struct InitialState { /* private fields */ }Implementations§
Source§impl InitialState
impl InitialState
pub const fn num_taxa(&self) -> usize
pub const fn method(&self) -> InitializationMethod
pub const fn seed_taxon(&self) -> Option<usize>
pub const fn rng_record(&self) -> Option<&RngRecord>
pub const fn space(&self) -> &CategoricalSpace
pub fn counts(&self) -> &[usize]
Sourcepub fn frequencies(&self) -> Vec<f64>
pub fn frequencies(&self) -> Vec<f64>
Returns the exact aggregate relative frequencies represented by the lattice.
Sourcepub fn to_json_bytes(&self) -> Result<Vec<u8>, Error>
pub fn to_json_bytes(&self) -> Result<Vec<u8>, Error>
Encodes the complete reproducible state in eco_core’s canonical JSON format.
pub fn clone_space(&self) -> CategoricalSpace
pub fn into_parts(self) -> (CategoricalSpace, TaxonCounts)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for InitialState
impl RefUnwindSafe for InitialState
impl Send for InitialState
impl Sync for InitialState
impl Unpin for InitialState
impl UnsafeUnpin for InitialState
impl UnwindSafe for InitialState
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more