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

Method to_str_radix_10

crates/vm/src/builtins/int.rs:312–317  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

310 /// Fast decimal string conversion, using i64 path when possible.
311 #[inline]
312 pub fn to_str_radix_10(&self) -> String {
313 match self.value.to_i64() {
314 Some(i) => i.to_string(),
315 None => self.value.to_string(),
316 }
317 }
318
319 // _PyLong_AsUnsignedLongMask
320 pub fn as_u32_mask(&self) -> u32 {

Callers 2

strMethod · 0.80
repr_strMethod · 0.80

Calls 1

to_stringMethod · 0.80

Tested by

no test coverage detected