| 165 | } |
| 166 | |
| 167 | pub trait WithErrorInfo: Sized { |
| 168 | fn push_hint<S: Into<String>>(self, hint: S) -> Self; |
| 169 | |
| 170 | fn with_hints<S: Into<String>, I: IntoIterator<Item = S>>(self, hints: I) -> Self; |
| 171 | |
| 172 | fn with_span(self, span: Option<Span>) -> Self; |
| 173 | |
| 174 | fn with_span_fallback(self, span: Option<Span>) -> Self; |
| 175 | |
| 176 | fn with_code(self, code: &'static str) -> Self; |
| 177 | |
| 178 | fn with_source(self, source: ErrorSource) -> Self; |
| 179 | } |
| 180 | |
| 181 | impl WithErrorInfo for Error { |
| 182 | fn push_hint<S: Into<String>>(mut self, hint: S) -> Self { |
nothing calls this directly
no outgoing calls
no test coverage detected