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

Method is_utf8

crates/wtf8/src/lib.rs:1028–1030  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

1026
1027 #[inline]
1028 pub fn is_utf8(&self) -> bool {
1029 self.next_surrogate(0).is_none()
1030 }
1031
1032 #[inline]
1033 pub fn eq_ignore_ascii_case(&self, other: &Self) -> bool {

Callers 1

into_stringMethod · 0.45

Calls 2

next_surrogateMethod · 0.80
is_noneMethod · 0.45

Tested by

no test coverage detected