Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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_kind
Method · 0.45
as_str
Method · 0.45
is_compatible_with
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected