leetrs 1.0.8

A command-line tool to interact with LeetCode.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
pub mod help_screen;
pub mod selection_screen;

use crossterm::event::KeyEvent;
use ratatui::Frame;

use crate::tui::Action;

pub trait Screen {
    fn render(&mut self, frame: &mut Frame);
    fn event_loop(&mut self, event: &KeyEvent) -> Option<Action>;
}