pub struct CausalState {
pub id: usize,
pub pooled: Vec<u32>,
pub histories: Vec<Vec<u8>>,
}Expand description
A causal state: an equivalence class of histories sharing the same conditional future distribution.
Fields§
§id: usize§pooled: Vec<u32>Pooled next-symbol counts across all histories assigned to this state.
histories: Vec<Vec<u8>>Histories (as symbol sequences) assigned to this state.
Trait Implementations§
Source§impl Clone for CausalState
impl Clone for CausalState
Source§fn clone(&self) -> CausalState
fn clone(&self) -> CausalState
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for CausalState
impl RefUnwindSafe for CausalState
impl Send for CausalState
impl Sync for CausalState
impl Unpin for CausalState
impl UnsafeUnpin for CausalState
impl UnwindSafe for CausalState
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