pub struct GraphViewState {
pub graph: Option<GitGraph>,
pub graph_lines: Vec<String>,
pub text_lines: Vec<String>,
pub indices: Vec<usize>,
pub offset: usize,
pub selected: Option<usize>,
pub branches: Option<StatefulList<BranchItem>>,
pub secondary_selected: Option<usize>,
pub secondary_changed: bool,
}
Fields§
§graph: Option<GitGraph>
§graph_lines: Vec<String>
§text_lines: Vec<String>
§indices: Vec<usize>
§offset: usize
§selected: Option<usize>
§branches: Option<StatefulList<BranchItem>>
§secondary_selected: Option<usize>
§secondary_changed: bool
Implementations§
Source§impl GraphViewState
impl GraphViewState
pub fn move_selection(&mut self, steps: usize, down: bool) -> bool
pub fn move_secondary_selection(&mut self, steps: usize, down: bool) -> bool
Trait Implementations§
Source§impl Default for GraphViewState
impl Default for GraphViewState
Source§fn default() -> GraphViewState
fn default() -> GraphViewState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GraphViewState
impl RefUnwindSafe for GraphViewState
impl Send for GraphViewState
impl !Sync for GraphViewState
impl Unpin for GraphViewState
impl UnwindSafe for GraphViewState
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> 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