pub struct App { /* private fields */ }Expand description
The main application, containing the state
Implementations§
source§impl App
impl App
pub fn new(diff: Diff) -> Self
pub fn set_diff(&mut self, diff: Diff)
sourcepub fn do_action(
&mut self,
key: Key,
state_one: &mut TableState,
state_two: &mut TableState,
diff_one_rows: &Vec<Row<'_>>,
diff_two_rows: &Vec<Row<'_>>
) -> AppReturn
pub fn do_action( &mut self, key: Key, state_one: &mut TableState, state_two: &mut TableState, diff_one_rows: &Vec<Row<'_>>, diff_two_rows: &Vec<Row<'_>> ) -> AppReturn
Handle a user action
sourcepub fn update_on_tick(&mut self) -> AppReturn
pub fn update_on_tick(&mut self) -> AppReturn
Update the app or dispatch events on tick
pub fn actions(&self) -> &Actions
pub fn state(&self) -> &AppState
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for App
impl Send for App
impl Sync for App
impl Unpin for App
impl UnwindSafe for App
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