pub struct CommitDetailState { /* private fields */ }Expand description
State for the commit detail widget.
Implementations§
Source§impl CommitDetailState
impl CommitDetailState
Sourcepub fn scroll_down(&mut self)
pub fn scroll_down(&mut self)
Scroll down one line.
Sourcepub fn scroll_down_half(&mut self)
pub fn scroll_down_half(&mut self)
Scroll down half a page.
Sourcepub fn scroll_up_half(&mut self)
pub fn scroll_up_half(&mut self)
Scroll up half a page.
Sourcepub fn scroll_down_page(&mut self)
pub fn scroll_down_page(&mut self)
Scroll down a full page.
Sourcepub fn scroll_up_page(&mut self)
pub fn scroll_up_page(&mut self)
Scroll up a full page.
Sourcepub fn select_first(&mut self)
pub fn select_first(&mut self)
Jump to the top.
Sourcepub fn select_last(&mut self)
pub fn select_last(&mut self)
Jump to the bottom.
Trait Implementations§
Source§impl Debug for CommitDetailState
impl Debug for CommitDetailState
Source§impl Default for CommitDetailState
impl Default for CommitDetailState
Source§fn default() -> CommitDetailState
fn default() -> CommitDetailState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for CommitDetailState
impl RefUnwindSafe for CommitDetailState
impl Send for CommitDetailState
impl Sync for CommitDetailState
impl Unpin for CommitDetailState
impl UnsafeUnpin for CommitDetailState
impl UnwindSafe for CommitDetailState
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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