markovian 0.2.1

Simulation of Markov Processes as stochastic processes.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use thiserror::Error;

#[derive(Copy, Clone, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd, Error)]
#[error("the state {state:?} is not a valid assignation")]
pub struct InvalidState<T: std::fmt::Debug> {
    state: T,
}

impl<T: std::fmt::Debug> InvalidState<T> {
	#[inline]
    pub fn new(state: T) -> Self {
        InvalidState { state }
    }
}