parse_key_as_label

Function parse_key_as_label 

Source
pub fn parse_key_as_label(
    key_str: &str,
    next_line_type: &LineType,
) -> Option<Label>
Expand description

Parses a key string (content before the final ‘:’ of a label line) into an Option<Label>. Returns None if the string does not conform to any known label syntax.