(self, attachment: F)
| 79 | |
| 80 | #[track_caller] |
| 81 | fn attach_with<A, F>(self, attachment: F) -> Result<T, Report<E::Context>> |
| 82 | where |
| 83 | A: Attachment, |
| 84 | F: FnOnce() -> A, |
| 85 | { |
| 86 | match self { |
| 87 | Ok(value) => Ok(value), |
| 88 | Err(error) => Err(error.into_report().attach(attachment())), |
| 89 | } |
| 90 | } |
| 91 | |
| 92 | #[track_caller] |
| 93 | fn attach_opaque<A>(self, attachment: A) -> Result<T, Report<E::Context>> |
nothing calls this directly
no test coverage detected