MCPcopy Create free account
hub / github.com/Lintermute/lazy_errors / wrap

Method wrap

lazy_errors/src/error.rs:566–571  ·  view source on GitHub ↗
(err: E)

Source from the content-addressed store, hash-verified

564 /// [_inner error type_ `I`](Error#inner-error-type-i).
565 #[track_caller]
566 pub fn wrap<E>(err: E) -> Self
567 where
568 E: Into<I>,
569 {
570 ErrorData::wrap(err).into()
571 }
572
573 /// Creates a [`WrappedError`] variant of [`Error`]
574 /// from something that can be turned into an

Callers

nothing calls this directly

Calls 1

locationFunction · 0.85

Tested by

no test coverage detected