validate_support_level

Function validate_support_level 

Source
pub fn validate_support_level(val: &str) -> Result<()>
Expand description

Validates support level values: blank or two space-separated levels <general> <dc> in -1..=5.

Scale for each component:

  • -1: N/A (e.g. reverse transformation for one-way functions, or non-Dc formats)
  • 0: None / unsupported
  • 1: WIP
  • 2: Basic / stream / partial format support
  • 3: Full general format support / complete semantic roundtripping to Dc syntax
  • 4: Lossless and roundtrippable (for Dc: unambiguous bit-for-bit reconstruction)
  • 5: Level 4 + optional strict validation