Skip to main content

parse_behavior_code

Function parse_behavior_code 

Source
fn parse_behavior_code(
    behavior: &str,
) -> Result<(&'static str, &'static str, &'static str)>
Expand description

Parse a behavior code string into (frequency, exclusivity, stability)

Valid frequency codes: A1, F1, FF, FM, FVM, NONE, NAME E suffix means EXCLUSIVITY = “Yes” S suffix means STABILITY = “Yes”

§Arguments

  • behavior - Behavior code (e.g., “FM”, “F1E”, “F1ES”, “NAME”)

§Returns

Tuple of (frequency, exclusivity, stability)

§Errors

  • InvalidInput if behavior code is invalid