MCPcopy Index your code
hub / github.com/RustPython/RustPython / is_char_and

Method is_char_and

crates/wtf8/src/lib.rs:168–170  ·  view source on GitHub ↗
(self, f: impl FnOnce(char) -> bool)

Source from the content-addressed store, hash-verified

166 }
167
168 pub fn is_char_and(self, f: impl FnOnce(char) -> bool) -> bool {
169 self.to_char().is_some_and(f)
170 }
171
172 pub fn encode_wtf8(self, dst: &mut [u8]) -> &mut Wtf8 {
173 unsafe { Wtf8::from_mut_bytes_unchecked(encode_utf8_raw(self.value, dst)) }

Callers 7

get_num_digitsFunction · 0.80
char_allMethod · 0.80
is_lowercaseMethod · 0.80
is_uppercaseMethod · 0.80
py_split_whitespaceMethod · 0.80
py_rsplit_whitespaceMethod · 0.80
is_asciiMethod · 0.80

Calls 1

to_charMethod · 0.45

Tested by

no test coverage detected