MCPcopy 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_digestFunction · 0.45

Calls 3

allMethod · 0.80
iterMethod · 0.45
is_asciiMethod · 0.45

Tested by

no test coverage detected