(name: &str)
| 285 | } |
| 286 | |
| 287 | fn check_known(name: &str) -> Result<()> { |
| 288 | if !vocab::is_known_directive(name) { |
| 289 | return Err(CanonicalError::Directive(format!( |
| 290 | "unknown directive ':{name}' — not in the closed registry" |
| 291 | ))); |
| 292 | } |
| 293 | Ok(()) |
| 294 | } |
| 295 | |
| 296 | /// Split "name{attrs}" (or "name") into (name, attrs-source-without-braces). |
| 297 | fn split_name_attrs(s: &str) -> (String, &str) { |
no test coverage detected