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

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.