pub struct TableColumn<T: 'static> { /* private fields */ }Expand description
Implementations§
Source§impl<T: 'static> TableColumn<T>
impl<T: 'static> TableColumn<T>
Sourcepub fn new<V: View>(
title: impl IntoValue<String>,
render: impl Fn(T) -> V + 'static,
) -> TableColumn<T>
pub fn new<V: View>( title: impl IntoValue<String>, render: impl Fn(T) -> V + 'static, ) -> TableColumn<T>
title can be a message (t!), which follows the language.
Sourcepub fn width(self, width: impl Into<Length>) -> TableColumn<T>
pub fn width(self, width: impl Into<Length>) -> TableColumn<T>
How wide it starts; the user can resize it, as the platform lets them. Without, it’s as wide as the platform makes a column.
Sourcepub fn expand(self) -> TableColumn<T>
pub fn expand(self) -> TableColumn<T>
Takes the room the table has past its columns’ widths, shared with the other columns that do: a file’s name, say.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for TableColumn<T>
impl<T> !Send for TableColumn<T>
impl<T> !Sync for TableColumn<T>
impl<T> !UnwindSafe for TableColumn<T>
impl<T> Freeze for TableColumn<T>
impl<T> Unpin for TableColumn<T>
impl<T> UnsafeUnpin for TableColumn<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