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

Method from

crates/compiler-core/src/bytecode/instruction.rs:422–425  ·  view source on GitHub ↗
(ins: Instruction)

Source from the content-addressed store, hash-verified

420impl From<Instruction> for u8 {
421 #[inline]
422 fn from(ins: Instruction) -> Self {
423 // SAFETY: there's no padding bits
424 unsafe { mem::transmute::<Instruction, Self>(ins) }
425 }
426}
427
428impl TryFrom<u8> for Instruction {

Callers

nothing calls this directly

Calls 3

pushedMethod · 0.80
poppedMethod · 0.80
RealClass · 0.50

Tested by

no test coverage detected