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

Method ljust

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

Source from the content-addressed store, hash-verified

1324
1325 #[pymethod]
1326 fn ljust(
1327 &self,
1328 width: isize,
1329 fillchar: OptionalArg<PyStrRef>,
1330 vm: &VirtualMachine,
1331 ) -> PyResult<Wtf8Buf> {
1332 self._pad(width, fillchar, AnyStr::py_ljust, vm)
1333 }
1334
1335 #[pymethod]
1336 fn rjust(

Callers

nothing calls this directly

Calls 1

_padMethod · 0.45

Tested by

no test coverage detected