Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ isascii
Method
isascii
crates/vm/src/bytes_inner.rs:338–340 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
336
}
337
338
pub fn isascii(&self) -> bool {
339
self.elements.iter().all(|x| char::from(*x).is_ascii())
340
}
341
342
pub fn isdigit(&self) -> bool {
343
!self.elements.is_empty()
Callers
1
compare_digest
Function · 0.45
Calls
3
all
Method · 0.80
iter
Method · 0.45
is_ascii
Method · 0.45
Tested by
no test coverage detected