Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
tui: Fix cargo doc
Erik Kundt committed 2 years ago
commit 8811fa97d48e677cae7c0c0225667c37048022b8
parent 170417f974af9707ed58b5ee14d000e1b5ad5899
2 files changed +4 -4
modified radicle-tui/src/ui/cob.rs
@@ -24,7 +24,7 @@ use super::widget::common::list::ListItem;
/// An author item that can be used in tables, list or trees.
///
/// Breaks up dependencies to [`Profile`] and [`Repository`] that
-
/// would be needed if [`Author`] would be used directly.
+
/// would be needed if [`AuthorItem`] would be used directly.
#[derive(Clone)]
pub struct AuthorItem {
    /// The author's DID.
modified radicle-tui/src/ui/widget/common/list.rs
@@ -13,7 +13,7 @@ use super::container::Header;
use super::label::Label;
use super::*;

-
/// A generic item that can be displayed in a table with [`W`] columns.
+
/// A generic item that can be displayed in a table with [`const W: usize`] columns.
pub trait TableItem<const W: usize> {
    /// Should return fields as table cells.
    fn row(&self, theme: &Theme) -> [Cell; W];
@@ -27,7 +27,7 @@ pub trait ListItem {

/// Grow behavior of a table column.
///
-
/// [`tui::widgets::Table`] does only support percental column widths.
+
/// [`tuirealm::tui::widgets::Table`] does only support percental column widths.
/// A [`ColumnWidth`] is used to specify the grow behaviour of a table column
/// and a percental column width is calculated based on that.
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
@@ -179,7 +179,7 @@ impl WidgetComponent for PropertyTable {
    }
}

-
/// A table component that can display a list of [`TableItem`]s hold by a [`TableModel`].
+
/// A table component that can display a list of [`TableItem`]s.
pub struct Table<V, const W: usize>
where
    V: TableItem<W> + Clone,