pub enum ErrorType {
CorpusEmpty,
CorpusNotEmpty,
TriesExceeded,
}Expand description
Struct for possible errors during the corpus building, or result generation.
Variants§
CorpusEmpty
Returned by Markov::generate() if your corpus is empty
CorpusNotEmpty
Returned by [´Markov::set_state_size()`] if your corpus already contain data.
TriesExceeded
Returned by Markov::generate() if it exceeds the maximum allowed tries to generate a result.
Trait Implementations§
impl Eq for ErrorType
impl StructuralPartialEq for ErrorType
Auto Trait Implementations§
impl Freeze for ErrorType
impl RefUnwindSafe for ErrorType
impl Send for ErrorType
impl Sync for ErrorType
impl Unpin for ErrorType
impl UnwindSafe for ErrorType
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