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

Method make_int

crates/vm/src/builtins/code.rs:338–340  ·  view source on GitHub ↗
(&self, value: BigInt)

Source from the content-addressed store, hash-verified

336 }
337
338 fn make_int(&self, value: BigInt) -> Self::Constant {
339 Literal(self.0.new_int(value).into())
340 }
341
342 fn make_tuple(&self, elements: impl Iterator<Item = Self::Constant>) -> Self::Constant {
343 Literal(self.0.new_tuple(elements.map(|lit| lit.0).collect()).into())

Callers

nothing calls this directly

Calls 2

LiteralClass · 0.70
new_intMethod · 0.45

Tested by

no test coverage detected