pub struct DiffState {
pub scroll: Viewport,
pub focus: Option<DiffFocus>,
}Expand description
Mutable read-only diff viewport state.
Fields§
§scroll: ViewportVertical viewport over the rendered document.
focus: Option<DiffFocus>Currently focused commit, file, or hunk.
Trait Implementations§
impl Eq for DiffState
impl StructuralPartialEq for DiffState
Auto Trait Implementations§
impl Freeze for DiffState
impl RefUnwindSafe for DiffState
impl Send for DiffState
impl Sync for DiffState
impl Unpin for DiffState
impl UnsafeUnpin for DiffState
impl UnwindSafe for DiffState
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