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

Function bench_data

src/derive/variant.rs:131–136  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

129 False,
130 }
131 fn bench_data() -> Vec<BoolEnum> {
132 crate::random_data(1000)
133 .into_iter()
134 .map(|v| if v { BoolEnum::True } else { BoolEnum::False })
135 .collect()
136 }
137 crate::bench_encode_decode!(bool_enum_vec: Vec<_>);
138}

Callers

nothing calls this directly

Calls 2

random_dataFunction · 0.50
collectMethod · 0.45

Tested by

no test coverage detected