MCPcopy Create free account
hub / github.com/douchuan/algorithm / byte_at

Function byte_at

src/common/util.rs:32–34  ·  view source on GitHub ↗
(s: &str, d: usize)

Source from the content-addressed store, hash-verified

30/// uncheck version of byte_at
31#[inline(always)]
32pub fn byte_at(s: &str, d: usize) -> usize {
33 s.as_bytes()[d] as usize
34}
35
36#[test]
37fn t_vec_alphabet() {

Callers 13

longest_prefix_ofMethod · 0.85
get_dthFunction · 0.85
put_dthFunction · 0.85
collect_matchFunction · 0.85
put_dthMethod · 0.85
delete_dthMethod · 0.85
get_dthFunction · 0.85
collect_matchFunction · 0.85
longest_prefix_of_dthFunction · 0.85
searchMethod · 0.85
fromMethod · 0.85
search1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected