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

Method isdigit

crates/vm/src/bytes_inner.rs:342–348  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

340 }
341
342 pub fn isdigit(&self) -> bool {
343 !self.elements.is_empty()
344 && self
345 .elements
346 .iter()
347 .all(|x| char::from(*x).is_ascii_digit())
348 }
349
350 pub fn islower(&self) -> bool {
351 self.elements.py_islower()

Callers 3

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45

Calls 3

allMethod · 0.80
is_emptyMethod · 0.45
iterMethod · 0.45

Tested by

no test coverage detected