pub enum ZantetsuError {
EmptyInput,
ParseFailed {
input: String,
},
RegexError(Error),
ModelLoadError(String),
InferenceError(String),
InvalidContext(String),
NeuralParser(String),
}Expand description
Errors that can occur during Zantetsu core operations.
Variants§
EmptyInput
The input string is empty or contains only whitespace.
ParseFailed
The parser failed to extract any meaningful metadata.
RegexError(Error)
A regex pattern failed to compile (should not happen with static patterns).
ModelLoadError(String)
The model weights file could not be loaded.
InferenceError(String)
The model inference failed.
InvalidContext(String)
An invalid quality profile was provided.
NeuralParser(String)
Neural parser error (general parse error string).
Trait Implementations§
Source§impl Debug for ZantetsuError
impl Debug for ZantetsuError
Source§impl Display for ZantetsuError
impl Display for ZantetsuError
Source§impl Error for ZantetsuError
impl Error for ZantetsuError
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 ZantetsuError
impl RefUnwindSafe for ZantetsuError
impl Send for ZantetsuError
impl Sync for ZantetsuError
impl Unpin for ZantetsuError
impl UnsafeUnpin for ZantetsuError
impl UnwindSafe for ZantetsuError
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