fn reverse_case(c: char) -> char {
    assert!(c.is_ascii());

    if c.is_ascii_lowercase() {
        c.to_ascii_uppercase()
    } else {
        c.to_ascii_lowercase()
    }
}
// Returns the reversed case of the given character. If the input character is lowercased we return
// the uppercased version and if the input character is uppercased we return the lowercased
// version.
Returns the reversed case of the given character. If the input character is lowercased we return
the uppercased version and if the input character is uppercased we return the lowercased
version.
Returns the reversed case of the given character . If the input character is lowercased we return the uppercased version and if the input character is uppercased we return the lowercased version .
fn reverse_case(c: char) -> char {
    assert!(c.is_ascii());
    if c.is_ascii_lowercase() {
        c.to_ascii_uppercase()
    } else {
        c.to_ascii_lowercase()
    }
}
fn reverse_case ( c : char ) -> char { assert ! ( c is_ascii ( ) ) ; if c . is_ascii_lowercase ( ) { c . to_ascii_uppercase ( ) } else { c . to_ascii_lowercase ( ) } }
Returns the reversed case of the given character.
Returns the reversed case of the given character .
c
char
c
char