pub struct EditableTableVec<'a, E>where
E: TableEditor + 'a,{ /* private fields */ }Expand description
Widget that supports row-wise editing of a table.
This widget keeps a Vec<RowData> and modifies it.
It’s parameterized with a Editor widget, that renders
the input line and handles events.
Implementations§
Source§impl<'a, E> EditableTableVec<'a, E>where
E: TableEditor + 'a,
impl<'a, E> EditableTableVec<'a, E>where
E: TableEditor + 'a,
Sourcepub fn new(
table: impl for<'b> Fn(&'b [<<E as TableEditor>::State as TableEditorState>::Value]) -> Table<'b, RowSelection> + 'a,
editor: E,
) -> Self
pub fn new( table: impl for<'b> Fn(&'b [<<E as TableEditor>::State as TableEditorState>::Value]) -> Table<'b, RowSelection> + 'a, editor: E, ) -> Self
Create a new editable table.
A bit tricky bc lifetimes of the table-data.
- table: constructor for the Table widget. This gets a
&[Value]slice to display and returns the configured table. - editor: editor widget.
Trait Implementations§
Source§impl<'a, E> Debug for EditableTableVec<'a, E>where
E: Debug + TableEditor + 'a,
impl<'a, E> Debug for EditableTableVec<'a, E>where
E: Debug + TableEditor + 'a,
Source§impl<'a, E> StatefulWidget for EditableTableVec<'a, E>where
E: TableEditor + 'a,
impl<'a, E> StatefulWidget for EditableTableVec<'a, E>where
E: TableEditor + 'a,
Source§type State = EditableTableVecState<<E as TableEditor>::State>
type State = EditableTableVecState<<E as TableEditor>::State>
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a, E> Freeze for EditableTableVec<'a, E>where
E: Freeze,
impl<'a, E> !RefUnwindSafe for EditableTableVec<'a, E>
impl<'a, E> !Send for EditableTableVec<'a, E>
impl<'a, E> !Sync for EditableTableVec<'a, E>
impl<'a, E> Unpin for EditableTableVec<'a, E>where
E: Unpin,
impl<'a, E> !UnwindSafe for EditableTableVec<'a, E>
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