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

Method wrap_with

lazy_errors/src/error.rs:578–584  ·  view source on GitHub ↗
(err: E, msg: M)

Source from the content-addressed store, hash-verified

576 /// and annotates it with an informative message.
577 #[track_caller]
578 pub fn wrap_with<E, M>(err: E, msg: M) -> Self
579 where
580 E: Into<I>,
581 M: Display,
582 {
583 ErrorData::wrap_with(err, msg).into()
584 }
585}
586
587impl<I> ErrorData<I> {

Callers

nothing calls this directly

Calls 1

locationFunction · 0.85

Tested by

no test coverage detected