Shorthand: attach a file path.
(mut self, path: impl Into<PathBuf>)
| 181 | |
| 182 | /// Shorthand: attach a file path. |
| 183 | pub fn with_path(mut self, path: impl Into<PathBuf>) -> Self { |
| 184 | self.ctx.get_or_insert_with(ErrorContext::default).path = Some(path.into()); |
| 185 | self |
| 186 | } |
| 187 | |
| 188 | /// Shorthand: attach a byte offset. |
| 189 | pub fn with_offset(mut self, offset: u64) -> Self { |
no outgoing calls
no test coverage detected