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

Method zfill

crates/vm/src/bytes_inner.rs:750–752  ·  view source on GitHub ↗
(&self, width: isize)

Source from the content-addressed store, hash-verified

748 }
749
750 pub fn zfill(&self, width: isize) -> Vec<u8> {
751 self.elements.py_zfill(width)
752 }
753
754 // len(self)>=1, from="", len(to)>=1, max_count>=1
755 fn replace_interleave(&self, to: Self, max_count: Option<usize>) -> Vec<u8> {

Callers 3

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45

Calls 1

py_zfillMethod · 0.80

Tested by

no test coverage detected