1pub trait One {
5 const ONE: Self;
7}
8
9impl One for f32 {
10 const ONE: Self = 1.;
11}
12
13impl One for f64 {
14 const ONE: Self = 1.;
15}
16
17impl One for i128 {
18 const ONE: Self = 1;
19}
20
21impl One for i16 {
22 const ONE: Self = 1;
23}
24
25impl One for i32 {
26 const ONE: Self = 1;
27}
28
29impl One for i64 {
30 const ONE: Self = 1;
31}
32
33impl One for i8 {
34 const ONE: Self = 1;
35}
36
37impl One for isize {
38 const ONE: Self = 1;
39}
40
41impl One for u128 {
42 const ONE: Self = 1;
43}
44
45impl One for u16 {
46 const ONE: Self = 1;
47}
48
49impl One for u32 {
50 const ONE: Self = 1;
51}
52
53impl One for u64 {
54 const ONE: Self = 1;
55}
56
57impl One for u8 {
58 const ONE: Self = 1;
59}
60
61impl One for usize {
62 const ONE: Self = 1;
63}