Struct rat_widget::table::edit::EditTable
source · pub struct EditTable<'a, Editor>where
Editor: EditorWidget + 'a,{ /* private fields */ }Expand description
Widget that supports row-wise editing of a table.
It’s parameterized with a Editor widget, that renders
the input line and handles events.
Implementations§
source§impl<'a, Editor> EditTable<'a, Editor>where
Editor: EditorWidget + 'a,
impl<'a, Editor> EditTable<'a, Editor>where
Editor: EditorWidget + 'a,
pub fn new( table: Table<'a, RowSelection>, edit: Editor, ) -> EditTable<'a, Editor>
Trait Implementations§
source§impl<'a, Editor> StatefulWidget for EditTable<'a, Editor>where
Editor: EditorWidget + 'a,
impl<'a, Editor> StatefulWidget for EditTable<'a, Editor>where
Editor: EditorWidget + 'a,
source§type State = EditTableState<<Editor as EditorWidget>::State>
type State = EditTableState<<Editor as EditorWidget>::State>
State associated with the stateful widget. Read more
Auto Trait Implementations§
impl<'a, Editor> Freeze for EditTable<'a, Editor>where
Editor: Freeze,
impl<'a, Editor> !RefUnwindSafe for EditTable<'a, Editor>
impl<'a, Editor> !Send for EditTable<'a, Editor>
impl<'a, Editor> !Sync for EditTable<'a, Editor>
impl<'a, Editor> Unpin for EditTable<'a, Editor>where
Editor: Unpin,
impl<'a, Editor> !UnwindSafe for EditTable<'a, Editor>
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