fn extract_class_digits(s: &str) -> Option<String> {
    if is_class(s) {
        if s.len() == 1 {
            Some(String::from(s))
        } else {
            let result = get_middle(s);
            if result.len() > 0 {
                Some(String::from(result))
            } else {
                None
            }
        }
    } else {
        None
    }
}
//could make an enum since there are only 15 valid possibilities
could make an enum since there are only 15 valid possibilities
could make an enum since there are only 15 valid possibilities
fn extract_class_digits(s: &str) -> Option<String> {
    if is_class(s) {
        if s.len() == 1 {
            Some(String::from(s))
        } else {
            let result = get_middle(s);
            if result.len() > 0 {
                Some(String::from(result))
            } else {
                None
            }
        }
    } else {
        None
    }
}
fn extract_class_digits ( s : & str ) -> Option < String > { if is_class ( s ) { if s . len ( ) == 1 { Some ( String :: from ( s ) ) } else { let result = get_middle ( s ) ; if result . len ( ) > 0 { Some ( String :: from ( result ) ) } else { None } } } else { None } }
could make an enum since there are only 15 valid possibilities
could make an enum since there are only 15 valid possibilities
s
&str
s
&str