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§
source§impl Debug for UnexpectedError
impl Debug for UnexpectedError
source§impl Display for UnexpectedError
impl Display for UnexpectedError
source§impl PartialEq for UnexpectedError
impl PartialEq for UnexpectedError
impl Eq for UnexpectedError
impl StructuralPartialEq for UnexpectedError
Auto Trait Implementations§
impl Freeze for UnexpectedError
impl RefUnwindSafe for UnexpectedError
impl Send for UnexpectedError
impl Sync for UnexpectedError
impl Unpin for UnexpectedError
impl UnwindSafe for UnexpectedError
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