Enum precis_core::UnexpectedError[][src]

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)

Tuple Fields

Error caused when trying to apply a context rule over an invalid code point.

MissingContextRule(CodepointInfo)

Tuple Fields

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Performs the conversion.

Performs the conversion.

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.