pub struct DiffOptions {
pub highlight_lookahead: usize,
pub syntax: Option<String>,
pub theme: String,
pub diff_palette: DiffPalette,
pub file_tree: FileTreeMode,
pub file_tree_root: String,
}Expand description
Diff viewer options.
Fields§
§highlight_lookahead: usizeNumber of rows after the visible viewport to request for highlighting.
syntax: Option<String>Optional syntax override stored in highlight requests.
theme: StringTheme name stored in highlight requests.
diff_palette: DiffPalettePositive and negative colors used for diff chrome.
file_tree: FileTreeModeWhether the file tree may be rendered beside the diff.
file_tree_root: StringFolder name shown as the file tree root.
Trait Implementations§
Source§impl Clone for DiffOptions
impl Clone for DiffOptions
Source§fn clone(&self) -> DiffOptions
fn clone(&self) -> DiffOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DiffOptions
impl Debug for DiffOptions
Auto Trait Implementations§
impl Freeze for DiffOptions
impl RefUnwindSafe for DiffOptions
impl Send for DiffOptions
impl Sync for DiffOptions
impl Unpin for DiffOptions
impl UnsafeUnpin for DiffOptions
impl UnwindSafe for DiffOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more