MCPcopy Create free account
hub / github.com/SoftbearStudios/bitcode / length

Method length

src/derive/variant.rs:45–47  ·  view source on GitHub ↗
(&self, variant_index: u8)

Source from the content-addressed store, hash-verified

43// C style enums don't require length, so we can skip making a histogram for them.
44impl<'a, const N: usize> VariantDecoder<'a, N, false> {
45 pub fn length(&self, variant_index: u8) -> usize {
46 self.histogram[variant_index as usize]
47 }
48}
49
50impl<'a, const N: usize, const C_STYLE: bool> View<'a> for VariantDecoder<'a, N, C_STYLE> {

Callers 4

populateMethod · 0.45
populateMethod · 0.45
populateMethod · 0.45
populateMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected