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

Method latin1_char

crates/vm/src/vm/context.rs:514–516  ·  view source on GitHub ↗
(&self, ch: u8)

Source from the content-addressed store, hash-verified

512
513 #[inline]
514 pub fn latin1_char(&self, ch: u8) -> PyRef<PyStr> {
515 self.latin1_char_cache[ch as usize].clone()
516 }
517
518 #[inline]
519 fn latin1_singleton_index(s: &PyStr) -> Option<u8> {

Callers 2

to_pyobjectMethod · 0.80
new_strMethod · 0.80

Calls 1

cloneMethod · 0.45

Tested by

no test coverage detected