We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c1ec29a commit 7fad370Copy full SHA for 7fad370
src/libcore/benches/ascii.rs
@@ -224,6 +224,18 @@ benches! {
224
}
225
226
227
+ fn case14_subtract_multiplied_bool_match_range(bytes: &mut [u8]) {
228
+ fn is_ascii_lowercase(b: u8) -> bool {
229
+ match b {
230
+ b'a'...b'z' => true,
231
+ _ => false
232
+ }
233
234
+ for byte in bytes {
235
+ *byte -= (b'a' - b'A') * is_ascii_lowercase(*byte) as u8
236
237
238
+
239
@iter
240
241
is_ascii,
0 commit comments