pub struct ArrayState {
pub items: Vec<Vec<String>>,
pub selected: usize,
pub editing: Option<ArrayEditSession>,
pub expanded: bool,
pub header_sel: usize,
pub item_btn_sel: usize,
}Expand description
Mutable state for one Array step.
Fields§
§items: Vec<Vec<String>>Completed items; items[i][j] is the value for sub-step j of item i.
selected: usizeBrowse cursor when expanded — direct item index (0-based).
editing: Option<ArrayEditSession>Active edit session, if any.
expanded: boolWhether the array is expanded (showing items) or collapsed (showing badge only).
header_sel: usizeWhich header button is focused when collapsed: 0 = [+ add], 1 = [n] badge.
item_btn_sel: usizeWhich inline button is focused on the selected item: 0 = item itself, 1 = [remove].
Implementations§
Source§impl ArrayState
impl ArrayState
Auto Trait Implementations§
impl Freeze for ArrayState
impl RefUnwindSafe for ArrayState
impl Send for ArrayState
impl Sync for ArrayState
impl Unpin for ArrayState
impl UnsafeUnpin for ArrayState
impl UnwindSafe for ArrayState
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