Skip to content

Commit a5d775d

Browse files
author
Eugene Bulkin
committed
Add more std::ascii module-level docs.
1 parent d8fb322 commit a5d775d

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/libstd/ascii.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
// except according to those terms.
1010

1111
//! Operations on ASCII strings and characters.
12+
//!
13+
//! Most string operations in Rust act on UTF-8 strings. However, at times it
14+
//! makes more sense to only consider the ASCII character set for a specific
15+
//! operation.
16+
//!
17+
//! The [`AsciiExt`] trait provides methods that allow for character
18+
//! operations that only act on the ASCII subset and leave non-ASCII characters
19+
//! alone.
20+
//!
21+
//! The [`escape_default`] function provides an iterator over the bytes of an
22+
//! escaped version of the character given.
23+
//!
24+
//! [`AsciiExt`]: trait.AsciiExt.html
25+
//! [`escape_default`]: fn.escape_default.html
1226
1327
#![stable(feature = "rust1", since = "1.0.0")]
1428

0 commit comments

Comments
 (0)