#[non_exhaustive]pub enum CompileErrorKind {
Show 16 variants
InvalidLengthGuard(String),
UnterminatedLengthGuard,
UnterminatedGroupSet,
EmptyGroupSet,
UnknownGroupName(String),
TokenAfterTrailingBoundary,
ExpectedDigitAfterBackslash,
IncreasingPriority {
base: u8,
min: u8,
},
BackslashWithoutDigit,
CaretNotFollowed,
EmptyGroupName,
NoLetters,
StrayCharacter(char),
ConflictingWeights,
WeightOutsideRun,
UnknownImport(String),
}Expand description
What went wrong on a pattern line.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
InvalidLengthGuard(String)
A […] length guard that is malformed or that no run can satisfy.
UnterminatedLengthGuard
A [ length guard with no closing ].
UnterminatedGroupSet
A { group set with no closing }.
EmptyGroupSet
A {} group set with no group names.
UnknownGroupName(String)
A group name that is not a Unicode Joining_Group long name.
TokenAfterTrailingBoundary
A token after the trailing . run boundary.
ExpectedDigitAfterBackslash
A \ in a two-digit priority not followed by a digit.
IncreasingPriority
A two-digit priority whose second digit is greater than its first.
BackslashWithoutDigit
A \ that does not follow a priority digit.
CaretNotFollowed
A ^ not followed by {, @, or =.
EmptyGroupName
An @ or = with no group name after it.
NoLetters
A pattern line with no letter tokens.
StrayCharacter(char)
A character that is neither pattern syntax nor a joining letter.
ConflictingWeights
Two weights (digits or !) in the same inter-token gap.
WeightOutsideRun
A weight in the gap between a token and a ., where no connection
exists.
UnknownImport(String)
A use naming a set that is not built in.
Trait Implementations§
Source§impl Clone for CompileErrorKind
impl Clone for CompileErrorKind
Source§fn clone(&self) -> CompileErrorKind
fn clone(&self) -> CompileErrorKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more