monostate 1.0.2

Type that deserializes only from one specific value
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// This error should be unreachable using the public API of monostate. Testing
// it anyway.
type __Private = (
    monostate::alphabet::len<8>,
    (
        monostate::alphabet::a,
        monostate::alphabet::s,
        monostate::alphabet::d,
        monostate::alphabet::f,
    ),
);

struct N<const N: usize>;

fn main() {
    let _ = N::<{ monostate::MustBeStr::<__Private>::VALUE.len() }>;
}