[−][src]Crate ascii
A library that provides ASCII-only string and character types, equivalent to the char
, str
and String
types in the standard library.
Please refer to the readme file to learn about the different feature modes of this crate.
Minimum supported Rust version
The minimum Rust version for 1.0.* releases is 1.33.0.
Later 1.y.0 releases might require newer Rust versions, but the three most
recent stable releases at the time of publishing will always be supported.
For example this means that if the current stable Rust version is 1.38 when
ascii 1.1.0 is released, then ascii 1.1.* will not require a newer
Rust version than 1.36.
History
This package included the Ascii types that were removed from the Rust standard library by the
2014-12 reform of the std::ascii
module. The
API changed significantly since then.
Structs
AsAsciiStrError | Error that is returned when a sequence of |
AsciiStr | AsciiStr represents a byte or string slice that only contains ASCII characters. |
Chars | A copying iterator over the characters of an |
CharsMut | A mutable iterator over the characters of an |
CharsRef | An immutable iterator over the characters of an |
ToAsciiCharError | Error returned by |
Enums
AsciiChar | An ASCII character. It wraps a |
Traits
AsAsciiStr | Convert slices of bytes or AsciiChar to |
AsMutAsciiStr | Convert mutable slices of bytes or AsciiChar to |
ToAsciiChar | Convert |
Functions
caret_decode | Returns the control code represented by a caret notation
letter, or |
caret_encode | Terminals use caret notation to display some typed control codes, such as ^D for EOT and ^Z for SUB. |