Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ index_mut
Method
index_mut
crates/codegen/src/ir.rs:84–86 ·
view source on GitHub ↗
(&mut self, idx: BlockIdx)
Source
from the content-addressed store, hash-verified
82
83
impl ops::IndexMut<BlockIdx> for [Block] {
84
fn index_mut(&mut self, idx: BlockIdx) -> &mut Block {
85
&mut self[idx.idx()]
86
}
87
}
88
89
impl ops::Index<BlockIdx> for Vec<Block> {
Callers
nothing calls this directly
Calls
1
idx
Method · 0.80
Tested by
no test coverage detected