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

Method into_value

crates/jit/src/instructions.rs:54–59  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

52 }
53
54 fn into_value(self) -> Option<Value> {
55 match self {
56 JitValue::Int(val) | JitValue::Float(val) | JitValue::Bool(val) => Some(val),
57 JitValue::None | JitValue::Null | JitValue::Tuple(_) | JitValue::FuncRef(_) => None,
58 }
59 }
60}
61
62#[derive(Clone)]

Callers 4

store_variableMethod · 0.80
return_valueMethod · 0.80
add_instructionMethod · 0.80
try_remove_nameMethod · 0.80

Calls 1

SomeClass · 0.50

Tested by

no test coverage detected