Expand description
Well-formedness validation and initial-state resolution.
validate checks every rule and returns all violations together, each naming the offending
node; a chart that passes can be compiled with crate::compile::CompiledChart::new and run.
Structs§
- Resolved
Initial - The resolved default entry of a compound state or of the root.
- Violation
- One well-formedness violation.
- Violations
- Every well-formedness violation of a chart, as one error value.
Enums§
- Initial
Source - Where a resolved default entry came from.
- NodeRef
- The node a violation is about.
- Violation
Kind - What is wrong.
Functions§
- resolve_
initial - Resolve the default entry of a state: the
initialattribute, else the<initial>element’s transition, else the first child state (not a history pseudo-state) in document order. - resolve_
root_ initial - Resolve the default entry of the root: its
initialattribute, else its first child state. - validate
- Validate a chart, returning every violation found.