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

Method location

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

Source from the content-addressed store, hash-verified

833 /// Resume location is determined by [`Self::LOCATION_MASK`].
834 #[must_use]
835 pub fn location(&self) -> ResumeLocation {
836 // SAFETY: The mask should return a value that is in range.
837 unsafe { ResumeLocation::try_from(self.as_u32() & Self::LOCATION_MASK).unwrap_unchecked() }
838 }
839
840 /// True if the bit at [`Self::DEPTH1_MASK`] is on.
841 #[must_use]

Callers

nothing calls this directly

Calls 1

as_u32Method · 0.80

Tested by

no test coverage detected