pub struct HunkDecoration {
pub gutter: Option<Paint<char>>,
pub corner: Line,
pub style: Option<Style>,
}Expand description
Decoration overlaid on a hunk.
Decorations never add rows: the gutter and corner are drawn into existing body rows, and the style is composed onto those rows.
Fields§
§gutter: Option<Paint<char>>Optional marker drawn in the gutter beside every hunk body row.
corner: LineMarkers drawn in the hunk’s top-right corner.
style: Option<Style>Style composed onto the hunk’s body rows, used to mute approved or otherwise inactive hunks.
Trait Implementations§
Source§impl Clone for HunkDecoration
impl Clone for HunkDecoration
Source§impl Debug for HunkDecoration
impl Debug for HunkDecoration
Auto Trait Implementations§
impl Freeze for HunkDecoration
impl RefUnwindSafe for HunkDecoration
impl Send for HunkDecoration
impl Sync for HunkDecoration
impl Unpin for HunkDecoration
impl UnsafeUnpin for HunkDecoration
impl UnwindSafe for HunkDecoration
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