pub enum OpenFstError {
Show 18 variants
Message(String),
PropertyVerificationFailed {
mask: u64,
expected: u64,
actual: u64,
},
InvalidOperation(String),
VerificationFailed(String),
SymbolTable(String),
Io(String),
Parse(ParseError),
InvalidMagicNumber {
expected: i32,
found: i32,
},
InvalidFstHeader(String),
MatcherInvalidMatchType {
matcher_name: &'static str,
match_type: MatchType,
},
MatcherInvalidConfiguration {
matcher_name: &'static str,
reason: &'static str,
},
NoStartState,
DoesNotReachFinalState,
MultipleOutgoingArcs {
state: usize,
},
FinalStateHasOutgoingArcs {
state: usize,
},
LabelToByteConversion,
Utf8Parse(FromUtf8Error),
LabelString(LabelStringError),
}Expand description
An error that occurred during an OpenFst operation.
Variants§
Message(String)
PropertyVerificationFailed
InvalidOperation(String)
VerificationFailed(String)
An FST failed verify.
SymbolTable(String)
Io(String)
Parse(ParseError)
InvalidMagicNumber
InvalidFstHeader(String)
MatcherInvalidMatchType
MatcherInvalidConfiguration
NoStartState
DoesNotReachFinalState
MultipleOutgoingArcs
FinalStateHasOutgoingArcs
LabelToByteConversion
Utf8Parse(FromUtf8Error)
LabelString(LabelStringError)
Implementations§
Trait Implementations§
Source§impl Clone for OpenFstError
impl Clone for OpenFstError
Source§fn clone(&self) -> OpenFstError
fn clone(&self) -> OpenFstError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenFstError
impl Debug for OpenFstError
Source§impl Display for OpenFstError
impl Display for OpenFstError
impl Eq for OpenFstError
Source§impl Error for OpenFstError
impl Error for OpenFstError
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 OpenFstError
impl From<Error> for OpenFstError
Source§impl From<FromUtf8Error> for OpenFstError
impl From<FromUtf8Error> for OpenFstError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<LabelStringError> for OpenFstError
impl From<LabelStringError> for OpenFstError
Source§fn from(source: LabelStringError) -> Self
fn from(source: LabelStringError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for OpenFstError
impl From<ParseError> for OpenFstError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for OpenFstError
impl PartialEq for OpenFstError
impl StructuralPartialEq for OpenFstError
Auto Trait Implementations§
impl Freeze for OpenFstError
impl RefUnwindSafe for OpenFstError
impl Send for OpenFstError
impl Sync for OpenFstError
impl Unpin for OpenFstError
impl UnsafeUnpin for OpenFstError
impl UnwindSafe for OpenFstError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.