This repository was archived by the owner on Dec 29, 2021. It is now read-only.
Commit abe2606
committed
feat(output): Generic predicate support
This accepts a message with it. This should hit the 90% case of a
`satisfies_ok` (or whatever it'd be called).
I'm also assuming that it'll be a best practice to document the custom
predicates, so its acceptable to force it on everyone.
If a `satisfies_ok` is found to be needed, I'm assuming its because the
user wants to tie into existing machinery that has error reporting. This
means we'll probably need to accept an `Fn` that `Box`es the error to
preserve it.
Fixes #551 parent f7a7f64 commit abe2606
2 files changed
Lines changed: 78 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
475 | 475 | | |
476 | 476 | | |
477 | 477 | | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
478 | 498 | | |
479 | 499 | | |
480 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
1 | 8 | | |
2 | 9 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 10 | | |
7 | 11 | | |
8 | 12 | | |
| |||
57 | 61 | | |
58 | 62 | | |
59 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
60 | 87 | | |
61 | 88 | | |
62 | 89 | | |
63 | 90 | | |
| 91 | + | |
64 | 92 | | |
65 | 93 | | |
66 | 94 | | |
67 | 95 | | |
68 | 96 | | |
69 | 97 | | |
70 | 98 | | |
| 99 | + | |
71 | 100 | | |
72 | 101 | | |
73 | 102 | | |
| |||
159 | 188 | | |
160 | 189 | | |
161 | 190 | | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
162 | 213 | | |
163 | 214 | | |
164 | 215 | | |
| |||
232 | 283 | | |
233 | 284 | | |
234 | 285 | | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
235 | 290 | | |
236 | 291 | | |
237 | 292 | | |
| |||
0 commit comments