(self, attachment: A)
| 68 | |
| 69 | #[track_caller] |
| 70 | fn attach<A>(self, attachment: A) -> Result<T, Report<E::Context>> |
| 71 | where |
| 72 | A: Attachment, |
| 73 | { |
| 74 | match self { |
| 75 | Ok(value) => Ok(value), |
| 76 | Err(error) => Err(error.into_report().attach(attachment)), |
| 77 | } |
| 78 | } |
| 79 | |
| 80 | #[track_caller] |
| 81 | fn attach_with<A, F>(self, attachment: F) -> Result<T, Report<E::Context>> |
no test coverage detected