pub enum KhamError {
InvalidUtf8,
DictLoadError(String),
CorruptDict,
EmptyInput,
}Expand description
All errors that kham-core can produce.
Variants§
InvalidUtf8
The supplied text was not valid UTF-8.
DictLoadError(String)
A dictionary file could not be loaded.
Contains a human-readable description of the problem.
CorruptDict
The trie data is malformed or has an unexpected version.
EmptyInput
An empty input was provided where non-empty input is required.
Trait Implementations§
Source§impl Error for KhamError
Available on crate feature std only.
impl Error for KhamError
Available on crate feature
std only.1.30.0 · 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()
impl Eq for KhamError
impl StructuralPartialEq for KhamError
Auto Trait Implementations§
impl Freeze for KhamError
impl RefUnwindSafe for KhamError
impl Send for KhamError
impl Sync for KhamError
impl Unpin for KhamError
impl UnsafeUnpin for KhamError
impl UnwindSafe for KhamError
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