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

Method to_typed

crates/jit/src/lib.rs:303–311  ·  view source on GitHub ↗
(self, ty: &JitType)

Source from the content-addressed store, hash-verified

301
302impl UnTypedAbiValue {
303 unsafe fn to_typed(self, ty: &JitType) -> AbiValue {
304 unsafe {
305 match ty {
306 JitType::Int => AbiValue::Int(self.int),
307 JitType::Float => AbiValue::Float(self.float),
308 JitType::Bool => AbiValue::Bool(self.boolean != 0),
309 }
310 }
311 }
312}
313
314// we don't actually ever touch CompiledCode til we drop it, it should be safe.

Callers 1

invoke_rawMethod · 0.80

Calls 3

BoolClass · 0.85
IntClass · 0.50
FloatClass · 0.50

Tested by

no test coverage detected