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

Method rjust

crates/vm/src/bytes_inner.rs:533–539  ·  view source on GitHub ↗
(
        &self,
        options: ByteInnerPaddingOptions,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

531 }
532
533 pub fn rjust(
534 &self,
535 options: ByteInnerPaddingOptions,
536 vm: &VirtualMachine,
537 ) -> PyResult<Vec<u8>> {
538 self._pad(options, AnyStr::py_rjust, vm)
539 }
540
541 pub fn count(&self, options: ByteInnerFindOptions, vm: &VirtualMachine) -> PyResult<usize> {
542 let (needle, range) = options.get_value(self.elements.len(), vm)?;

Callers 3

builtin_str.pyFile · 0.45
builtin_bytes.pyFile · 0.45

Calls 1

_padMethod · 0.45

Tested by

no test coverage detected