MCPcopy Create free account
hub / github.com/hashintel/hash / try_collect

Method try_collect

libs/error-stack/src/ext/tuple.rs:63–70  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

61 type Output = (T,);
62
63 fn try_collect(self) -> Result<Self::Output, Report<[C]>> {
64 let (result,) = self;
65
66 match result {
67 Ok(value) => Ok((value,)),
68 Err(report) => Err(report.into()),
69 }
70 }
71}
72
73#[rustfmt::skip]

Callers 15

decodeMethod · 0.80
create_producerMethod · 0.80
create_producerMethod · 0.80
create_producerMethod · 0.80
create_producerMethod · 0.80
create_distributionMethod · 0.80
create_distributionMethod · 0.80
single_errorFunction · 0.80
no_errorFunction · 0.80
expanded_errorFunction · 0.80
multiple_errorsFunction · 0.80

Calls 2

OkInterface · 0.85
ErrInterface · 0.85

Tested by 5

single_errorFunction · 0.64
no_errorFunction · 0.64
expanded_errorFunction · 0.64
multiple_errorsFunction · 0.64