pub trait Check {
// Required methods
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;
}Expand description
Defines the methods for ASCII operations on characters.
Required Methods§
Sourcefn is_space(self) -> bool
fn is_space(self) -> bool
is_space checks whether it is an ASCII space character
(Space, Horizontal Tab, Line Feed, Vertical Tab, Form Feed, Carriage Return).
Sourcefn is_control(self) -> bool
fn is_control(self) -> bool
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.
Sourcefn is_printable(self) -> bool
fn is_printable(self) -> bool
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.
Sourcefn is_us_ascii(self) -> bool
fn is_us_ascii(self) -> bool
is_us_ascii checks whether it is an US-ASCII character.
Sourcefn is_extended(self) -> bool
fn is_extended(self) -> bool
is_extended checks whether it is an extended ASCII character.