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

Method rjust

crates/vm/src/builtins/str.rs:1336–1343  ·  view source on GitHub ↗
(
        &self,
        width: isize,
        fillchar: OptionalArg<PyStrRef>,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

1334
1335 #[pymethod]
1336 fn rjust(
1337 &self,
1338 width: isize,
1339 fillchar: OptionalArg<PyStrRef>,
1340 vm: &VirtualMachine,
1341 ) -> PyResult<Wtf8Buf> {
1342 self._pad(width, fillchar, AnyStr::py_rjust, vm)
1343 }
1344
1345 #[pymethod]
1346 fn expandtabs(&self, args: anystr::ExpandTabsArgs, vm: &VirtualMachine) -> PyResult<String> {

Callers

nothing calls this directly

Calls 1

_padMethod · 0.45

Tested by

no test coverage detected