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

Method as_u8

crates/compiler-core/src/bytecode/oparg.rs:881–888  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

879impl ResumeLocation {
880 #[must_use]
881 pub const fn as_u8(&self) -> u8 {
882 match self {
883 Self::AtFuncStart => 0,
884 Self::AfterYield => 1,
885 Self::AfterYieldFrom => 2,
886 Self::AfterAwait => 3,
887 }
888 }
889
890 #[must_use]
891 pub const fn as_u32(&self) -> u32 {

Callers 2

as_u32Method · 0.80
fromMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected