Struct rat_widget::table::edit::EditFTable
source · pub struct EditFTable<'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.
Implementations§
source§impl<'a, Editor> EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
impl<'a, Editor> EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
pub fn new( table: FTable<'a, RowSelection>, edit: Editor, ) -> EditFTable<'a, Editor>
Trait Implementations§
source§impl<'a, Editor> Debug for EditFTable<'a, Editor>where
Editor: Debug + EditorWidget + 'a,
impl<'a, Editor> Debug for EditFTable<'a, Editor>where
Editor: Debug + EditorWidget + 'a,
source§impl<'a, Editor> StatefulWidget for EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
impl<'a, Editor> StatefulWidget for EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
§type State = EditFTableState<<Editor as EditorWidget>::State>
type State = EditFTableState<<Editor as EditorWidget>::State>
State associated with the stateful widget. Read more
source§fn render(
self,
area: Rect,
buf: &mut Buffer,
state: &mut <EditFTable<'a, Editor> as StatefulWidget>::State,
)
fn render( self, area: Rect, buf: &mut Buffer, state: &mut <EditFTable<'a, Editor> as StatefulWidget>::State, )
Draws the current state of the widget in the given buffer. That is the only method required
to implement a custom stateful widget.
source§impl<'a, Editor> StatefulWidgetRef for EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
impl<'a, Editor> StatefulWidgetRef for EditFTable<'a, Editor>where
Editor: EditorWidget + 'a,
§type State = EditFTableState<<Editor as EditorWidget>::State>
type State = EditFTableState<<Editor as EditorWidget>::State>
State associated with the stateful widget. Read more
source§fn render_ref(
&self,
area: Rect,
buf: &mut Buffer,
state: &mut <EditFTable<'a, Editor> as StatefulWidgetRef>::State,
)
fn render_ref( &self, area: Rect, buf: &mut Buffer, state: &mut <EditFTable<'a, Editor> as StatefulWidgetRef>::State, )
Draws the current state of the widget in the given buffer. That is the only method required
to implement a custom stateful widget.
Auto Trait Implementations§
impl<'a, Editor> Freeze for EditFTable<'a, Editor>where
Editor: Freeze,
impl<'a, Editor> !RefUnwindSafe for EditFTable<'a, Editor>
impl<'a, Editor> !Send for EditFTable<'a, Editor>
impl<'a, Editor> !Sync for EditFTable<'a, Editor>
impl<'a, Editor> Unpin for EditFTable<'a, Editor>where
Editor: Unpin,
impl<'a, Editor> !UnwindSafe for EditFTable<'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