termino 0.0.4

A terminal library for Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pub fn is_all_control(s: &str) -> bool {
    if s.is_empty() {
        return false;
    }
    return s.chars().all(|c: char| c.is_ascii_control());
}

pub fn is_all_digits(s: &str) -> bool {
    if s.is_empty() {
        return false;
    }
    return s.chars().all(|c: char| c.is_ascii_digit());
}