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

Method contains

src/strings/alphabet.rs:127–129  ·  view source on GitHub ↗

Returns true if the argument is a character in this alphabet

(&self, c: char)

Source from the content-addressed store, hash-verified

125
126 /// Returns true if the argument is a character in this alphabet
127 pub fn contains(&self, c: char) -> bool {
128 self.inverse.get(c as usize) != Some(&-1)
129 }
130
131 /// Returns the number of characters in this alphabet (the radix)
132 pub fn radix(&self) -> usize {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected