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

Method format_char

crates/common/src/cformat.rs:404–409  ·  view source on GitHub ↗
(&self, ch: T::Char)

Source from the content-addressed store, hash-verified

402
403 #[inline]
404 pub fn format_char<T: FormatBuf>(&self, ch: T::Char) -> T {
405 self.format_string_with_precision(
406 T::from_iter([ch]),
407 Some(&(CFormatQuantity::Amount(1).into())),
408 )
409 }
410
411 pub fn format_bytes(&self, bytes: &[u8]) -> Vec<u8> {
412 let bytes = if let Some(CFormatPrecision::Quantity(CFormatQuantity::Amount(precision))) =

Callers 2

spec_format_bytesFunction · 0.80
spec_format_stringFunction · 0.80

Calls 2

SomeClass · 0.50

Tested by

no test coverage detected