(&self)
| 252 | /// Convert to graph_op build options. |
| 253 | #[must_use] |
| 254 | pub fn to_hunk_options(&self) -> HunkBuildOptions { |
| 255 | let mut opts = HunkBuildOptions::new().context_lines(self.context_lines); |
| 256 | if let Some(enc) = self.default_encoding { |
| 257 | opts = opts.encoding(enc); |
| 258 | } |
| 259 | opts |
| 260 | } |
| 261 | } |
| 262 | |
| 263 | impl Default for RecordingOptions { |