pub enum KuteError {
Show 14 variants
InvalidInput(String),
InvalidVocabulary(String),
InvalidIdentifier(String),
InvalidConfig(String),
UnknownToken(u32),
UnknownSymbol(String),
VocabularyMismatch(String),
Unsupported(String),
NotTrained(String),
LimitExceeded(String),
Integrity(String),
Io(Error),
Serde(String),
Backend(String),
}Expand description
Every failure KUTE reports. Library code returns these instead of panicking, including on malformed or hostile input.
Variants§
InvalidInput(String)
InvalidVocabulary(String)
InvalidIdentifier(String)
InvalidConfig(String)
UnknownToken(u32)
UnknownSymbol(String)
VocabularyMismatch(String)
Unsupported(String)
NotTrained(String)
LimitExceeded(String)
Integrity(String)
Io(Error)
Serde(String)
Backend(String)
Trait Implementations§
Source§impl Error for KuteError
impl Error for KuteError
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 !RefUnwindSafe for KuteError
impl !UnwindSafe for KuteError
impl Forget for KuteError
impl Freeze for KuteError
impl Move for KuteError
impl Send for KuteError
impl Sync for KuteError
impl Unpin for KuteError
impl UnsafeUnpin for KuteError
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