Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Amanieu/regalloc3
/ new
Method
new
src/allocation_unit.rs:19–24 ·
view source on GitHub ↗
(index: usize)
Source
from the content-addressed store, hash-verified
17
impl EntityRef for AllocationUnit {
18
#[inline]
19
fn new(index: usize) -> Self {
20
debug_assert!(index < (u32::MAX as usize));
21
Self {
22
index: index as u32,
23
}
24
}
25
26
#[inline]
27
fn index(self) -> usize {
Callers
nothing calls this directly
Calls
1
index
Method · 0.45
Tested by
no test coverage detected