Struct leetcode_tui_rs::app_ui::widgets::question_list::QuestionListWidget
source · pub struct QuestionListWidget {
pub common_state: CommonState,
pub questions: StatefulList<QuestionModelContainer>,
pub all_questions: HashMap<Rc<TopicTagModel>, Vec<Rc<QuestionModelContainer>>>,
/* private fields */
}
Fields§
§common_state: CommonState
§questions: StatefulList<QuestionModelContainer>
§all_questions: HashMap<Rc<TopicTagModel>, Vec<Rc<QuestionModelContainer>>>
Implementations§
source§impl QuestionListWidget
impl QuestionListWidget
pub fn new( id: WidgetName, task_sender: ChannelRequestSender, vim_tx: VimPingSender, vim_running: Arc<AtomicBool>, config: Rc<Config> ) -> Self
Trait Implementations§
source§impl Debug for QuestionListWidget
impl Debug for QuestionListWidget
source§impl Widget for QuestionListWidget
impl Widget for QuestionListWidget
fn render(&mut self, rect: Rect, frame: &mut CrosstermStderr<'_>)
fn handler(&mut self, event: KeyEvent) -> AppResult<Option<Notification>>
fn setup(&mut self) -> AppResult<()>
fn process_task_response(&mut self, response: TaskResponse) -> AppResult<()>
fn process_notification( &mut self, notification: Notification ) -> AppResult<Option<Notification>>
fn get_common_state(&self) -> &CommonState
fn get_common_state_mut(&mut self) -> &mut CommonState
fn get_notification_queue(&mut self) -> &mut VecDeque<Notification>
fn get_help_text_notif(&self) -> AppResult<Option<Notification>>
fn can_handle_key_set(&self) -> IndexSet<&KeyCode>
fn set_active(&mut self) -> AppResult<Option<Notification>>
fn is_active(&self) -> bool
fn get_help_texts(&self) -> &IndexSet<HelpText>
fn get_help_texts_mut(&mut self) -> &mut IndexSet<HelpText>
fn set_inactive(&mut self)
fn get_widget_name(&self) -> WidgetName
fn get_task_sender(&self) -> &ChannelRequestSender
fn show_spinner(&mut self) -> AppResult<()>
fn hide_spinner(&mut self) -> AppResult<()>
fn spinner_notif(&mut self, show: bool) -> AppResult<()>
Auto Trait Implementations§
impl !RefUnwindSafe for QuestionListWidget
impl !Send for QuestionListWidget
impl !Sync for QuestionListWidget
impl Unpin for QuestionListWidget
impl !UnwindSafe for QuestionListWidget
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