Struct rat_widget::table::edit::EditTableState
source · pub struct EditTableState<EditorState> {
pub table: TableState<RowSelection>,
pub edit: Option<EditorState>,
pub mouse: MouseFlags,
}Expand description
State for EditTable.
If edit is set to Some, this widget switches to editing-mode.
Otherwise, it behaves like a normal table.
Fields§
§table: TableState<RowSelection>Backing table.
edit: Option<EditorState>Editor state.
mouse: MouseFlagsImplementations§
source§impl<EditorState> EditTableState<EditorState>
impl<EditorState> EditTableState<EditorState>
pub fn new() -> EditTableState<EditorState>
pub fn named(name: &str) -> EditTableState<EditorState>
Trait Implementations§
source§impl<EditorState> Debug for EditTableState<EditorState>where
EditorState: Debug,
impl<EditorState> Debug for EditTableState<EditorState>where
EditorState: Debug,
source§impl<EditorState> Default for EditTableState<EditorState>where
EditorState: Default,
impl<EditorState> Default for EditTableState<EditorState>where
EditorState: Default,
source§fn default() -> EditTableState<EditorState>
fn default() -> EditTableState<EditorState>
Returns the “default value” for a type. Read more
source§impl<EState, EQualifier> HandleEvent<Event, EQualifier, EditOutcome> for EditTableState<EState>
impl<EState, EQualifier> HandleEvent<Event, EQualifier, EditOutcome> for EditTableState<EState>
source§impl<EditorState> HasFocus for EditTableState<EditorState>where
EditorState: HasFocus,
impl<EditorState> HasFocus for EditTableState<EditorState>where
EditorState: HasFocus,
source§fn container(&self) -> Option<ContainerFlag>
fn container(&self) -> Option<ContainerFlag>
Returns the container-flag
source§fn is_focused(&self) -> bool
fn is_focused(&self) -> bool
Focused?
source§fn lost_focus(&self) -> bool
fn lost_focus(&self) -> bool
Just lost focus.
source§fn gained_focus(&self) -> bool
fn gained_focus(&self) -> bool
Just gained focus.
Auto Trait Implementations§
impl<EditorState> !Freeze for EditTableState<EditorState>
impl<EditorState> !RefUnwindSafe for EditTableState<EditorState>
impl<EditorState> !Send for EditTableState<EditorState>
impl<EditorState> !Sync for EditTableState<EditorState>
impl<EditorState> Unpin for EditTableState<EditorState>where
EditorState: Unpin,
impl<EditorState> !UnwindSafe for EditTableState<EditorState>
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