pub enum TerraphimAutomataError {
InvalidThesaurus(String),
Serde(Error),
Dict(String),
Io(Error),
AhoCorasick(BuildError),
Fst(Error),
}Expand description
Errors that can occur when working with automata and thesaurus operations.
Variants§
InvalidThesaurus(String)
Invalid thesaurus format or structure
Serde(Error)
JSON serialization/deserialization error
Dict(String)
Dictionary-related error
Io(Error)
File I/O error
AhoCorasick(BuildError)
Aho-Corasick automata construction error
Fst(Error)
Finite state transducer (FST) error
Trait Implementations§
Source§impl Debug for TerraphimAutomataError
impl Debug for TerraphimAutomataError
Source§impl Display for TerraphimAutomataError
impl Display for TerraphimAutomataError
Source§impl Error for TerraphimAutomataError
impl Error for TerraphimAutomataError
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<BuildError> for TerraphimAutomataError
impl From<BuildError> for TerraphimAutomataError
Source§fn from(source: BuildError) -> Self
fn from(source: BuildError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for TerraphimAutomataError
impl From<Error> for TerraphimAutomataError
Source§impl From<Error> for TerraphimAutomataError
impl From<Error> for TerraphimAutomataError
Auto Trait Implementations§
impl Freeze for TerraphimAutomataError
impl !RefUnwindSafe for TerraphimAutomataError
impl Send for TerraphimAutomataError
impl Sync for TerraphimAutomataError
impl Unpin for TerraphimAutomataError
impl UnsafeUnpin for TerraphimAutomataError
impl !UnwindSafe for TerraphimAutomataError
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