Returns whether this string ends with a dash ('-'), followed by 16 lowercase hexadecimal characters
(s: &str)
| 306 | |
| 307 | /// Returns whether this string ends with a dash ('-'), followed by 16 lowercase hexadecimal characters |
| 308 | fn ends_with_dash_hash(s: &str) -> bool { |
| 309 | let n = s.len(); |
| 310 | if n < 17 { |
| 311 | return false; |
| 312 | } |
| 313 | let mut bytes = s.bytes().skip(n - 17); |
| 314 | if bytes.next() != Some(b'-') { |
| 315 | return false; |
| 316 | } |
| 317 | |
| 318 | bytes.all(|b| b.is_ascii_hexdigit()) |
| 319 | } |
| 320 | |
| 321 | /// Paths to all of the library artifacts of dependencies needed to compile tests. |
| 322 | struct TestDeps { |