pipecircuit 0.0.14

Correct. Robust. Fast. Portable.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
pipecircuit::value_wrapper! {
    #[derive(Clone, Copy, Debug, Eq, PartialEq)]
    pub struct Count(u16);
}

#[test]
fn value_wrapper_constructs_and_extracts_its_private_value() {
    const COUNT: Count = Count::new(7);
    const VALUE: u16 = COUNT.value();

    assert_eq!(COUNT, Count::new(7));
    assert_eq!(VALUE, 7);
}