pub struct AdaptiveColumns<const N: usize, T: TreeModel> { /* private fields */ }Implementations§
Source§impl<const N: usize, T: TreeModel> AdaptiveColumns<N, T>
impl<const N: usize, T: TreeModel> AdaptiveColumns<N, T>
pub fn new( label_width: ColumnWidth, label_header: &'static str, columns: [ColumnDef<T>; N], column_widths: [ColumnWidth; 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 AdaptiveColumns<N, T>
impl<const N: usize, T: TreeModel> TreeColumns<T> for AdaptiveColumns<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 AdaptiveColumns<N, T>
impl<const N: usize, T> RefUnwindSafe for AdaptiveColumns<N, T>
impl<const N: usize, T> Send for AdaptiveColumns<N, T>
impl<const N: usize, T> Sync for AdaptiveColumns<N, T>
impl<const N: usize, T> Unpin for AdaptiveColumns<N, T>
impl<const N: usize, T> UnwindSafe for AdaptiveColumns<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