MCPcopy 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
12type VariantIndex = u8;
13pub fn variant_index(i: usize) -> VariantIndex {
14 i.try_into().unwrap()
15}
16
17pub trait Item: Copy + Sized {
18 fn field_impl(

Callers 2

enum_implMethod · 0.85
enum_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected