(&self)
| 301 | /// Convert to graph_op build options. |
| 302 | #[must_use] |
| 303 | pub fn to_hunk_options(&self) -> HunkBuildOptions { |
| 304 | let mut opts = HunkBuildOptions::new().context_lines(self.context_lines); |
| 305 | if let Some(enc) = self.default_encoding { |
| 306 | opts = opts.encoding(enc); |
| 307 | } |
| 308 | opts |
| 309 | } |
| 310 | } |
| 311 | |
| 312 | impl Default for RecordingOptions { |