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

Method change_context

libs/error-stack/src/result.rs:116–124  ·  view source on GitHub ↗
(self, context: C)

Source from the content-addressed store, hash-verified

114
115 #[track_caller]
116 fn change_context<C>(self, context: C) -> Result<T, Report<C>>
117 where
118 C: Error + Send + Sync + 'static,
119 {
120 match self {
121 Ok(value) => Ok(value),
122 Err(error) => Err(error.into_report().change_context(context)),
123 }
124 }
125
126 #[track_caller]
127 fn change_context_lazy<C, F>(self, context: F) -> Result<T, Report<C>>

Callers 1

change_context_lazyMethod · 0.45

Calls 3

OkInterface · 0.85
ErrInterface · 0.85
into_reportMethod · 0.45

Tested by

no test coverage detected