Enum precis_core::UnexpectedError
source · [−]pub enum UnexpectedError {
ContextRuleNotApplicable(CodepointInfo),
MissingContextRule(CodepointInfo),
ProfileRuleNotApplicable,
Undefined,
}Expand description
Internal errors that group unusual error conditions that mostly have to do with the processing of wrong labels, unexpected Unicode code points if tested against another version defined in PRECIS, etc.
Variants
ContextRuleNotApplicable(CodepointInfo)
Error caused when trying to apply a context rule over an invalid code point.
MissingContextRule(CodepointInfo)
The code point requires a context rule that is not implemented.
CodepointInfo contains information about the code point.
ProfileRuleNotApplicable
Error caused when trying to apply a context rule that is not defined by the PRECIS profile.
Undefined
Unexpected error condition such as an attempt to access to a character before the start of a label or after the end of a label.
Trait Implementations
sourceimpl Debug for UnexpectedError
impl Debug for UnexpectedError
sourceimpl Display for UnexpectedError
impl Display for UnexpectedError
sourceimpl PartialEq<UnexpectedError> for UnexpectedError
impl PartialEq<UnexpectedError> for UnexpectedError
sourcefn eq(&self, other: &UnexpectedError) -> bool
fn eq(&self, other: &UnexpectedError) -> bool
impl Eq for UnexpectedError
impl StructuralEq for UnexpectedError
impl StructuralPartialEq for UnexpectedError
Auto Trait Implementations
impl RefUnwindSafe for UnexpectedError
impl Send for UnexpectedError
impl Sync for UnexpectedError
impl Unpin for UnexpectedError
impl UnwindSafe for UnexpectedError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more