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

Method py_rjust

crates/vm/src/anystr.rs:300–302  ·  view source on GitHub ↗
(&self, width: usize, fillchar: Self::Char, len: usize)

Source from the content-addressed store, hash-verified

298 }
299
300 fn py_rjust(&self, width: usize, fillchar: Self::Char, len: usize) -> Self::Container {
301 self.py_pad(width - len, 0, fillchar)
302 }
303
304 fn py_join(
305 &self,

Callers

nothing calls this directly

Implementers 2

bytes_inner.rscrates/vm/src/bytes_inner.rs
str.rscrates/vm/src/builtins/str.rs

Calls 1

py_padMethod · 0.80

Tested by

no test coverage detected