pub enum KenlmError {
InteriorNul(NulError),
Load(String),
StateModelMismatch,
}Expand description
Errors returned by the KenLM bindings.
Variants§
InteriorNul(NulError)
A path or word contained an interior NUL byte and cannot cross the C ABI.
Load(String)
KenLM could not load the requested model.
StateModelMismatch
A state created by one model was used with another model.
Trait Implementations§
Source§impl Debug for KenlmError
impl Debug for KenlmError
Source§impl Display for KenlmError
impl Display for KenlmError
Source§impl Error for KenlmError
impl Error for KenlmError
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()
Auto Trait Implementations§
impl Freeze for KenlmError
impl RefUnwindSafe for KenlmError
impl Send for KenlmError
impl Sync for KenlmError
impl Unpin for KenlmError
impl UnsafeUnpin for KenlmError
impl UnwindSafe for KenlmError
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