pub enum AggregateRuleError {
Show 15 variants
Alphabet(AlphabetError),
ForeignSymbol {
alphabet_id: AlphabetId,
},
DuplicateDeclaration {
position: usize,
},
MissingDeclaration {
position: usize,
},
ZeroMultiplicity {
position: usize,
},
NoOmissions,
OmitsEverything(AlphabetId),
InvalidProjectionId {
value: String,
reason: &'static str,
},
DuplicateProjectionId(ProjectionId),
EmptyProjectionClass(ProjectionId),
DuplicateProjectionMember {
position: usize,
},
MissingProjectionMember {
position: usize,
},
MultiplicityOverflow,
AlphabetMismatch {
rule_id: AlphabetId,
series_id: AlphabetId,
},
CardinalityMismatch {
expected: usize,
found: usize,
},
}Expand description
Failure while compiling symbolic aggregate-rule data for one alphabet.
Variants§
Alphabet(AlphabetError)
The alphabet itself was invalid.
ForeignSymbol
A declaration named a symbol outside the alphabet.
Fields
alphabet_id: AlphabetIdStable alphabet id.
DuplicateDeclaration
The same symbol was declared more than once.
MissingDeclaration
A multiplicity declaration omitted an alphabet symbol.
ZeroMultiplicity
A multiplicity was zero where the selected rule requires presence.
NoOmissions
An omission rule named no omitted symbols.
OmitsEverything(AlphabetId)
A rule omitted every symbol and could not admit a musical series.
InvalidProjectionId
Projected class identity did not use the stable portable syntax.
DuplicateProjectionId(ProjectionId)
Two projected classes reused the same stable id.
EmptyProjectionClass(ProjectionId)
A projected class had no source symbols.
DuplicateProjectionMember
An alphabet symbol was assigned to more than one projected class.
MissingProjectionMember
An alphabet symbol was not assigned to a projected class.
MultiplicityOverflow
Declared multiplicities overflowed the platform series length.
AlphabetMismatch
The rule’s declarations were compiled for another alphabet identity.
Fields
rule_id: AlphabetIdAlphabet id retained by the rule.
series_id: AlphabetIdAlphabet id supplied to series construction.
CardinalityMismatch
The rule’s declarations were compiled for another alphabet cardinality.
Trait Implementations§
Source§impl Clone for AggregateRuleError
impl Clone for AggregateRuleError
Source§fn clone(&self) -> AggregateRuleError
fn clone(&self) -> AggregateRuleError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AggregateRuleError
impl Debug for AggregateRuleError
Source§impl Display for AggregateRuleError
impl Display for AggregateRuleError
impl Eq for AggregateRuleError
Source§impl Error for AggregateRuleError
impl Error for AggregateRuleError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()