We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad91f7 commit c1ec29aCopy full SHA for c1ec29a
src/libcore/benches/ascii.rs
@@ -212,6 +212,18 @@ benches! {
212
}
213
214
215
+ fn case13_subtract_shifted_bool_match_range(bytes: &mut [u8]) {
216
+ fn is_ascii_lowercase(b: u8) -> bool {
217
+ match b {
218
+ b'a'...b'z' => true,
219
+ _ => false
220
+ }
221
222
+ for byte in bytes {
223
+ *byte -= (is_ascii_lowercase(*byte) as u8) << 5
224
225
226
+
227
@iter
228
229
is_ascii,
0 commit comments