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

Method is_utf8

crates/common/src/str.rs:43–45  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

41 }
42
43 pub const fn is_utf8(&self) -> bool {
44 matches!(self, Self::Ascii | Self::Utf8)
45 }
46
47 #[inline(always)]
48 pub fn can_encode(&self, code: CodePoint) -> bool {

Callers 3

str_kindMethod · 0.45
as_strMethod · 0.45
is_compatible_withMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected