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

Method left_ternary_op

crates/vm/src/protocol/number.rs:581–587  ·  view source on GitHub ↗
(&self, op_slot: PyNumberTernaryOp)

Source from the content-addressed store, hash-verified

579 }
580
581 pub fn left_ternary_op(&self, op_slot: PyNumberTernaryOp) -> Option<PyNumberTernaryFunc> {
582 use PyNumberTernaryOp::*;
583 match op_slot {
584 Power => self.power.load(),
585 InplacePower => self.inplace_power.load(),
586 }
587 }
588
589 pub fn right_ternary_op(&self, op_slot: PyNumberTernaryOp) -> Option<PyNumberTernaryFunc> {
590 use PyNumberTernaryOp::*;

Callers 2

ternary_opMethod · 0.80
ternary_iopMethod · 0.80

Calls 1

loadMethod · 0.45

Tested by

no test coverage detected