pub enum MarkovError {
ParamError(String),
JsonError(Error),
ModelFormatError(String),
StateSizeError(String),
CombineError(String),
GenerationError(String),
}Expand description
Errors that can occur when working with Markov chains
Variants§
ParamError(String)
Errors related to invalid parameters passed to functions
JsonError(Error)
Errors occurring during JSON serialization or deserialization
ModelFormatError(String)
Errors related to invalid model format during loading
StateSizeError(String)
Errors occurring when combining models with different state sizes
CombineError(String)
Errors occurring during model combination
GenerationError(String)
Errors related to failed sentence generation
Trait Implementations§
Source§impl Debug for MarkovError
impl Debug for MarkovError
Source§impl Display for MarkovError
impl Display for MarkovError
Source§impl Error for MarkovError
impl Error for MarkovError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for MarkovError
impl !RefUnwindSafe for MarkovError
impl Send for MarkovError
impl Sync for MarkovError
impl Unpin for MarkovError
impl UnsafeUnpin for MarkovError
impl !UnwindSafe for MarkovError
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