pub struct Step<T: Eq + Copy + Hash + Debug + Send + Sync> {
pub state: T,
pub transitions: RwLock<HashMap<ToStep<T>, usize>>,
}Expand description
A node in the Markov chain, holding a state and weighted transitions to other steps.
Fields§
§state: TThe state value for this step.
transitions: RwLock<HashMap<ToStep<T>, usize>>Outgoing transitions and their weights.
Implementations§
Trait Implementations§
impl<T> Eq for Step<T>
Auto Trait Implementations§
impl<T> !Freeze for Step<T>
impl<T> RefUnwindSafe for Step<T>where
T: RefUnwindSafe,
impl<T> Send for Step<T>
impl<T> Sync for Step<T>
impl<T> Unpin for Step<T>where
T: Unpin,
impl<T> UnsafeUnpin for Step<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Step<T>where
T: UnwindSafe,
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