lib: Move all Radicle-dependent code to bin/

This commit is contained in:
Erik Kundt
2024-06-11 15:09:44 +02:00
parent eca3b296c3
commit dba75b31f5
15 changed files with 30 additions and 19 deletions
+6 -2
View File
@@ -1,7 +1,7 @@
use std::cmp;
use std::marker::PhantomData;
use ratatui::widgets::Row;
use ratatui::widgets::{Cell, Row};
use ratatui::Frame;
use termion::event::Key;
@@ -10,13 +10,17 @@ use ratatui::style::Stylize;
use ratatui::text::Text;
use ratatui::widgets::TableState;
use crate::ui::items::ToRow;
use crate::ui::theme::style;
use crate::ui::{layout, span};
use super::{container::Column, RenderProps, View};
use super::{ViewProps, ViewState};
/// Needs to be implemented for items that are supposed to be rendered in tables.
pub trait ToRow<const W: usize> {
fn to_row(&self) -> [Cell; W];
}
#[derive(Clone, Debug)]
pub struct TableProps<'a, R, const W: usize>
where