1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
// Copyright 2013-2014 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
//! 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.1.\* releases is 1.41.1.
//! 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.70 when
//! ascii 1.2.0 is released, then ascii 1.2.\* will not require a newer
//! Rust version than 1.68.
//!
//! # 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](https://github.com/rust-lang/rfcs/pull/486). The
//! API changed significantly since then.
// Clippy lints
// Naming conventions sometimes go against this lint
// We need to get literal non-asciis for tests
// Sometimes it looks better to invert the order, such as when the `else` block is small
// Shadowing is common and doesn't affect understanding
// TODO: Consider removing `shadow_unrelated`, as it can show some actual logic errors
// A `if let` / `else` sometimes looks better than using iterator adaptors
// In tests, we're fine with indexing, since a panic is a failure.
// for compatibility with methods on char and u8
// In preparation for feature `unsafe_block_in_unsafe_fn` (https://github.com/rust-lang/rust/issues/71668)
extern crate alloc;
extern crate core;
extern crate serde;
extern crate serde_test;
pub use ;
pub use ;
pub use ;
pub use ;
pub use ;