pub struct DiffView { /* private fields */ }Expand description
A colored unified diff viewer with line numbers.
Renders additions with green line number and + prefix, deletions with
red line number and - prefix, matching Claude Code’s diff style.
Supports keyboard scrolling (Up/Down/PageUp/PageDown).
Implementations§
Trait Implementations§
Source§impl Component for DiffView
impl Component for DiffView
Auto Trait Implementations§
impl Freeze for DiffView
impl RefUnwindSafe for DiffView
impl Send for DiffView
impl Sync for DiffView
impl Unpin for DiffView
impl UnsafeUnpin for DiffView
impl UnwindSafe for DiffView
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