MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / ends_with_dash_hash

Function ends_with_dash_hash

tests/src/main.rs:308–319  ·  view source on GitHub ↗

Returns whether this string ends with a dash ('-'), followed by 16 lowercase hexadecimal characters

(s: &str)

Source from the content-addressed store, hash-verified

306
307/// Returns whether this string ends with a dash ('-'), followed by 16 lowercase hexadecimal characters
308fn 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.
322struct TestDeps {

Callers 1

find_libFunction · 0.85

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected