MCPcopy Create free account
hub / github.com/eigenform/perfect / as_byte

Method as_byte

perfect/src/experiments/decoder.rs:17–23  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

15}
16impl LegacyPrefix {
17 pub fn as_byte(&self) -> u8 {
18 match self {
19 Self::Group1(p) => *p as u8,
20 Self::Group2(p) => *p as u8,
21 Self::Group3(p) => *p as u8,
22 }
23 }
24}
25impl Distribution<LegacyPrefix> for Standard {
26 fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> LegacyPrefix {

Callers 1

sampleMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected