Trait ascii_utils::Check [] [src]

pub trait Check {
    fn is_letter(self) -> bool;
    fn is_lower(self) -> bool;
    fn is_upper(self) -> bool;
    fn is_digit(self) -> bool;
    fn is_space(self) -> bool;
    fn is_control(self) -> bool;
    fn is_printable(self) -> bool;
    fn is_us_ascii(self) -> bool;
    fn is_extended(self) -> bool;
}

Defines the methods for ASCII operations on characters.

Required Methods

is_letter checks whether it is an ASCII letter (a-z / A-Z).

is_lower checks whether it is an ASCII lower case letter (a-z).

is_upper checks whether it is an ASCII upper case letter (A-Z).

is_digit checks whether it is an ASCII digit (0-9).

is_space checks whether it is an ASCII space character (Space, Horizontal Tab, Line Feed, Vertical Tab, Form Feed, Carriage Return).

is_control checks whether it is an ASCII control character. The control characters are unprintable control codes and are used to control peripherals such as printers.

is_printable checks whether it is an ASCII printable character. The printable characters are common for all the different variations of the ASCII table; represent letters, digits, punctuation marks, and a few miscellaneous symbols.

is_us_ascii checks whether it is an US-ASCII character.

is_extended checks whether it is an extended ASCII character.

Implementors