pub struct DiffState {
pub scroll: usize,
pub focus: Option<DiffFocus>,
pub collapsed_files: BTreeSet<FileId>,
}Expand description
Mutable read-only diff viewport state.
Fields§
§scroll: usizeFirst visible row in the rendered document.
focus: Option<DiffFocus>Currently focused file or hunk.
collapsed_files: BTreeSet<FileId>Collapsed file sections.
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