mascot_rs/zero.rs
1pub trait Zero {
2 const ZERO: Self;
3}
4
5impl Zero for u8 {
6 const ZERO: Self = 0;
7}
8
9impl Zero for u16 {
10 const ZERO: Self = 0;
11}
12
13impl Zero for u32 {
14 const ZERO: Self = 0;
15}
16
17impl Zero for u64 {
18 const ZERO: Self = 0;
19}
20
21impl Zero for u128 {
22 const ZERO: Self = 0;
23}
24
25impl Zero for usize {
26 const ZERO: Self = 0;
27}