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

Method to_char

src/strings/alphabet.rs:111–113  ·  view source on GitHub ↗

Returns the character corresponding to the argument index

(&self, i: i32)

Source from the content-addressed store, hash-verified

109
110 /// Returns the character corresponding to the argument index
111 pub fn to_char(&self, i: i32) -> Option<&char> {
112 self.alphabet.get(i as usize)
113 }
114
115 /// Returns the characters corresponding to the argument indices
116 pub fn to_chars(&self, indices: &[i32]) -> String {

Callers 1

to_charsMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected