(&self)
| 292 | /// Convert to graph_op build options. |
| 293 | #[must_use] |
| 294 | pub fn to_hunk_options(&self) -> HunkBuildOptions { |
| 295 | let mut opts = HunkBuildOptions::new().context_lines(self.context_lines); |
| 296 | if let Some(enc) = self.default_encoding { |
| 297 | opts = opts.encoding(enc); |
| 298 | } |
| 299 | opts |
| 300 | } |
| 301 | } |
| 302 | |
| 303 | impl Default for RecordingOptions { |