Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/SoftbearStudios/bitcode
/ variant_index
Function
variant_index
bitcode_derive/src/shared.rs:13–15 ·
view source on GitHub ↗
(i: usize)
Source
from the content-addressed store, hash-verified
11
12
type VariantIndex = u8;
13
pub fn variant_index(i: usize) -> VariantIndex {
14
i.try_into().unwrap()
15
}
16
17
pub trait Item: Copy + Sized {
18
fn field_impl(
Callers
2
enum_impl
Method · 0.85
enum_impl
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected