prop_check_rs/gen/
one.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
use crate::gen::{Gen, Gens};

pub trait One
where
  Self: Sized, {
  fn one() -> Gen<Self>;
}

impl One for i64 {
  fn one() -> Gen<Self> {
    Gens::one_i64()
  }
}

impl One for u64 {
  fn one() -> Gen<Self> {
    Gens::one_u64()
  }
}

impl One for i32 {
  fn one() -> Gen<Self> {
    Gens::one_i32()
  }
}

impl One for u32 {
  fn one() -> Gen<Self> {
    Gens::one_u32()
  }
}

impl One for i16 {
  fn one() -> Gen<Self> {
    Gens::one_i16()
  }
}

impl One for u16 {
  fn one() -> Gen<Self> {
    Gens::one_u16()
  }
}

impl One for i8 {
  fn one() -> Gen<Self> {
    Gens::one_i8()
  }
}

impl One for u8 {
  fn one() -> Gen<Self> {
    Gens::one_u8()
  }
}

impl One for char {
  fn one() -> Gen<Self> {
    Gens::one_char()
  }
}

impl One for bool {
  fn one() -> Gen<Self> {
    Gens::one_bool()
  }
}

impl One for f64 {
  fn one() -> Gen<Self> {
    Gens::one_f64()
  }
}

impl One for f32 {
  fn one() -> Gen<Self> {
    Gens::one_f32()
  }
}