pub enum WizardStepKind {
Leaf,
Optional,
Select(&'static [&'static str]),
Section(&'static [WizardStep]),
Array(&'static [WizardStep]),
Buttons(&'static [&'static str]),
}Expand description
The kind of a wizard step, controlling how it is rendered and how keys are handled.
Variants§
Leaf
Free-text input. Tab/Enter advances to the next step.
Optional
Free-text input that can be skipped by pressing Enter on an empty buffer.
Select(&'static [&'static str])
Cycle through a fixed list of options with Left/Right.
Section(&'static [WizardStep])
Visual grouping that expands its children in place. Sections are not counted as leaves themselves — their children are counted instead.
Array(&'static [WizardStep])
Variable-length list of items, each with the given sub-steps. Counts as one leaf in the DFS order (the array header).
Buttons(&'static [&'static str])
One or more action buttons rendered inline.
Left/Right cycles the highlighted button.
Enter on the first button (index 0) fires WizardEvent::Done.
Enter on any other button fires WizardEvent::Cancelled.
BackTab retreats to the previous step. Esc fires Cancelled.
Auto Trait Implementations§
impl Freeze for WizardStepKind
impl RefUnwindSafe for WizardStepKind
impl Send for WizardStepKind
impl Sync for WizardStepKind
impl Unpin for WizardStepKind
impl UnsafeUnpin for WizardStepKind
impl UnwindSafe for WizardStepKind
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
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>
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>
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