pub struct CadencePage {
pub data: CadenceData,
pub selected_index: usize,
pub selected_author: Option<AuthorDetails>,
pub table_state: TableState,
}Fields§
§data: CadenceData§selected_index: usize§table_state: TableStateImplementations§
Source§impl CadencePage
impl CadencePage
pub fn new(data: CadenceData) -> Self
pub fn handle_key(&mut self, key_event: KeyEvent, repo: &KitRepo)
pub fn next_index(&mut self)
pub fn previous_index(&mut self)
pub fn unselect(&mut self)
pub fn select(&mut self, repo: &KitRepo)
pub fn more_info(&self, frame: &mut Frame<'_>, details: &AuthorDetails)
Trait Implementations§
Source§impl Debug for CadencePage
impl Debug for CadencePage
Source§impl Renderable for CadencePage
impl Renderable for CadencePage
Auto Trait Implementations§
impl Freeze for CadencePage
impl RefUnwindSafe for CadencePage
impl Send for CadencePage
impl Sync for CadencePage
impl Unpin for CadencePage
impl UnsafeUnpin for CadencePage
impl UnwindSafe for CadencePage
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