Expand description
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.
§Requirements
- The minimum supported Rust version is 1.9.0
- Enabling the quickcheck feature requires Rust 1.12.0
- Enabling the serde feature requires Rust 1.13.0
§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§
- Error that is returned when a sequence of
u8
are not all ASCII. - AsciiStr represents a byte or string slice that only contains ASCII characters.
- A growable string stored as an ASCII encoded buffer.
- A possible error value when converting an
AsciiString
from a byte vector or string. It wraps anAsAsciiStrError
which you can get through theascii_error()
method. - An iterator over the lines of the internal character array.
- Error returned by
ToAsciiChar
.
Enums§
- An ASCII character. It wraps a
u8
, with the highest bit always zero.
Traits§
- Convert slices of bytes to
AsciiStr
. - Convert mutable slices of bytes to
AsciiStr
. - Convert vectors into
AsciiString
. - Convert
char
,u8
and other character types toAsciiChar
.
Functions§
- Returns the control code represented by a caret notation letter, or
None
if the letter is not used in caret notation. - Terminals use caret notation to display some typed control codes, such as ^D for EOT and ^Z for SUB.
Type Aliases§
- An immutable iterator over the characters of an
AsciiStr
. - A mutable iterator over the characters of an
AsciiStr
.