Searched refs:parse_byte_from_ascii_char_pair (Results 1 – 2 of 2) sorted by relevance
/aosp_15_r20/external/rust/android-crates-io/crates/uguid/src/ |
D | util.rs | 52 const fn parse_byte_from_ascii_char_pair(a: u8, b: u8) -> Option<u8> { in parse_byte_from_ascii_char_pair() function 77 parse_byte_from_ascii_char_pair(s[start_usize], s[start_usize + 1]) in parse_byte_from_ascii_str_at() 97 assert_eq!(parse_byte_from_ascii_char_pair(b'1', b'a'), Some(0x1a)); in test_parse() 98 assert_eq!(parse_byte_from_ascii_char_pair(b'8', b'f'), Some(0x8f)); in test_parse() 100 assert_eq!(parse_byte_from_ascii_char_pair(b'g', b'a'), None); in test_parse() 101 assert_eq!(parse_byte_from_ascii_char_pair(b'a', b'g'), None); in test_parse()
|
/aosp_15_r20/external/rust/crates/uguid/src/ |
D | util.rs | 52 const fn parse_byte_from_ascii_char_pair(a: u8, b: u8) -> Option<u8> { in parse_byte_from_ascii_char_pair() function 77 parse_byte_from_ascii_char_pair(s[start_usize], s[start_usize + 1]) in parse_byte_from_ascii_str_at() 97 assert_eq!(parse_byte_from_ascii_char_pair(b'1', b'a'), Some(0x1a)); in test_parse() 98 assert_eq!(parse_byte_from_ascii_char_pair(b'8', b'f'), Some(0x8f)); in test_parse() 100 assert_eq!(parse_byte_from_ascii_char_pair(b'g', b'a'), None); in test_parse() 101 assert_eq!(parse_byte_from_ascii_char_pair(b'a', b'g'), None); in test_parse()
|