pub struct SimpleColumns<const N: usize, T: TreeModel> { /* private fields */ }Implementations§
Source§impl<const N: usize, T: TreeModel> SimpleColumns<N, T>
impl<const N: usize, T: TreeModel> SimpleColumns<N, T>
pub fn new( label_constraint: Constraint, label_header: &'static str, columns: [ColumnDef<T>; N], ) -> Self
pub const fn header_style(self, style: Style) -> Self
pub const fn without_header(self) -> Self
Trait Implementations§
Source§impl<const N: usize, T: TreeModel> TreeColumns<T> for SimpleColumns<N, T>
impl<const N: usize, T: TreeModel> TreeColumns<T> for SimpleColumns<N, T>
fn label_constraint(&self) -> Constraint
fn other_constraints(&self) -> &[Constraint]
fn header(&self) -> Option<Row<'_>>
fn cells<'a>(&'a self, model: &'a T, id: T::Id) -> SmallVec<[Cell<'a>; 8]>
fn constraints_for_area(&self, _area: Rect) -> SmallVec<[Constraint; 8]>
Auto Trait Implementations§
impl<const N: usize, T> Freeze for SimpleColumns<N, T>
impl<const N: usize, T> RefUnwindSafe for SimpleColumns<N, T>
impl<const N: usize, T> Send for SimpleColumns<N, T>
impl<const N: usize, T> Sync for SimpleColumns<N, T>
impl<const N: usize, T> Unpin for SimpleColumns<N, T>
impl<const N: usize, T> UnwindSafe for SimpleColumns<N, T>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more