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

Method get_unchecked

crates/compiler-core/src/bytecode/instruction.rs:1739–1742  ·  view source on GitHub ↗
(self, arg: OpArg)

Source from the content-addressed store, hash-verified

1737 /// T::from_op_arg(self) must succeed
1738 #[inline(always)]
1739 pub unsafe fn get_unchecked(self, arg: OpArg) -> T {
1740 // SAFETY: requirements forwarded from caller
1741 unsafe { T::try_from(u32::from(arg)).unwrap_unchecked() }
1742 }
1743}
1744
1745impl<T: OpArgType> PartialEq for Arg<T> {

Callers 2

zfillFunction · 0.80
lookupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected