pub struct ArrayEditSession {
pub item_idx: usize,
pub sub_step: usize,
pub is_new: bool,
pub original_values: Vec<String>,
pub buffer: String,
pub buf_cursor: usize,
pub select_idx: usize,
}Expand description
State for an in-progress edit of one array item.
Fields§
§item_idx: usizeWhich item (0-based index into ArrayState::items).
sub_step: usizeWhich sub-step is currently active.
is_new: booltrue if this item was just created — Esc will delete it.
original_values: Vec<String>Original sub-step values for Esc-restore on existing items.
buffer: StringText buffer for Leaf sub-steps.
buf_cursor: usizeByte-cursor within buffer.
select_idx: usizeSelected index for Select sub-steps.
Auto Trait Implementations§
impl Freeze for ArrayEditSession
impl RefUnwindSafe for ArrayEditSession
impl Send for ArrayEditSession
impl Sync for ArrayEditSession
impl Unpin for ArrayEditSession
impl UnsafeUnpin for ArrayEditSession
impl UnwindSafe for ArrayEditSession
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