(self, attachment: F)
| 102 | |
| 103 | #[track_caller] |
| 104 | fn attach_opaque_with<A, F>(self, attachment: F) -> Result<T, Report<E::Context>> |
| 105 | where |
| 106 | A: OpaqueAttachment, |
| 107 | F: FnOnce() -> A, |
| 108 | { |
| 109 | match self { |
| 110 | Ok(value) => Ok(value), |
| 111 | Err(error) => Err(error.into_report().attach_opaque(attachment())), |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | #[track_caller] |
| 116 | fn change_context<C>(self, context: C) -> Result<T, Report<C>> |
nothing calls this directly
no test coverage detected