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
80
81
82
83
84
85
86
87
// src/core/try_builder.rs
// TryQueryBuilder<T, E> — failure-tolerant pipeline builder.
//
// Wraps a lazy iterator of Result<T, E> and provides two terminal operations:
// collect_partitioned — accumulate everything, split into (ok, err) vecs
// collect_results — short-circuit on the first Err
/// A lazy pipeline of fallible items produced by `try_select` or `try_where_`.
///
/// Each element in the pipeline is either `Ok(value)` or `Err(error)`.
/// Two terminal operations determine how errors are handled:
///
/// - [`collect_partitioned`]: keep going, split results into `(ok_vec, err_vec)`
/// - [`collect_results`]: stop at the first `Err`, returning `Err(e)`
///
/// [`collect_partitioned`]: TryQueryBuilder::collect_partitioned
/// [`collect_results`]: TryQueryBuilder::collect_results