pub enum JmdictError {
DataNotFound,
DataVersionMismatch {
expected: u32,
found: u32,
},
DataCorrupted,
InvalidQuery,
IoError(Error),
DeserializationError,
}Expand description
Typed error enum for jmdict-fast, suitable for FFI consumers.
Variants§
DataNotFound
Data files not found at the expected path.
DataVersionMismatch
Binary format version mismatch between data and library.
DataCorrupted
Data files are corrupted or have an invalid format.
InvalidQuery
The query was invalid (e.g., empty string).
IoError(Error)
An I/O error occurred while reading data files.
DeserializationError
Failed to deserialize entry data.
Implementations§
Trait Implementations§
Source§impl Debug for JmdictError
impl Debug for JmdictError
Source§impl Display for JmdictError
impl Display for JmdictError
Source§impl Error for JmdictError
impl Error for JmdictError
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()
Source§impl From<Error> for JmdictError
impl From<Error> for JmdictError
Auto Trait Implementations§
impl Freeze for JmdictError
impl !RefUnwindSafe for JmdictError
impl Send for JmdictError
impl Sync for JmdictError
impl Unpin for JmdictError
impl UnsafeUnpin for JmdictError
impl !UnwindSafe for JmdictError
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