pub struct DiffResponse {
pub response: Response,
pub selected_lines: Vec<SelectedLine>,
pub expanded: Option<(usize, usize)>,
pub toggled_file: Option<usize>,
pub hunk: Option<(usize, usize)>,
pub top_file: Option<usize>,
pub visible: Range<usize>,
}Expand description
What the view reports this frame.
Fields§
§response: Response§selected_lines: Vec<SelectedLine>The selected lines in order (headers and collapsed ranges are left out), at most
MAX_SELECTED_LINES.
expanded: Option<(usize, usize)>A collapsed range expanded this frame: (file, gap).
toggled_file: Option<usize>A file folded or unfolded this frame.
hunk: Option<(usize, usize)>The hunk keyboard navigation moved to this frame: (file, hunk).
top_file: Option<usize>The file the sticky header shows.
visible: Range<usize>Rows laid out this frame.
Auto Trait Implementations§
impl !RefUnwindSafe for DiffResponse
impl !UnwindSafe for DiffResponse
impl Forget for DiffResponse
impl Freeze for DiffResponse
impl Move for DiffResponse
impl Send for DiffResponse
impl Sync for DiffResponse
impl Unpin for DiffResponse
impl UnsafeUnpin for DiffResponse
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more