pub struct VirtualTable<'a> { /* private fields */ }Expand description
A virtualized table: a VirtualList whose rows are split into resizable columns.
Implementations§
Source§impl<'a> VirtualTable<'a>
impl<'a> VirtualTable<'a>
pub fn new( id: &'a str, columns: &'a [Column<'a>], rows: usize, heights: RowHeights<'a>, ) -> Self
pub fn selected(self, row: Option<usize>) -> Self
pub fn is_selected(self, f: &'a dyn Fn(usize) -> bool) -> Self
pub fn sort(self, sort: Option<Sort>) -> Self
pub fn scroll_to(self, row: Option<usize>) -> Self
pub fn max_height(self, h: f32) -> Self
Sourcepub fn label(self, text: &'a str) -> Self
pub fn label(self, text: &'a str) -> Self
The name a screen reader announces for the table. See VirtualList::label.
pub fn row_label(self, f: &'a dyn Fn(usize) -> &'a str) -> Self
Sourcepub fn changed_rows(self, rows: &'a [usize]) -> Self
pub fn changed_rows(self, rows: &'a [usize]) -> Self
Sourcepub fn type_ahead(self, text: &'a dyn Fn(usize) -> &'a str) -> Self
pub fn type_ahead(self, text: &'a dyn Fn(usize) -> &'a str) -> Self
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for VirtualTable<'a>
impl<'a> !Send for VirtualTable<'a>
impl<'a> !Sync for VirtualTable<'a>
impl<'a> !UnwindSafe for VirtualTable<'a>
impl<'a> Forget for VirtualTable<'a>
impl<'a> Freeze for VirtualTable<'a>
impl<'a> Move for VirtualTable<'a>
impl<'a> Unpin for VirtualTable<'a>
impl<'a> UnsafeUnpin for VirtualTable<'a>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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