pub struct WizardStep {
pub label: &'static str,
pub kind: WizardStepKind,
}Expand description
One node in the wizard step tree.
Fields§
§label: &'static str§kind: WizardStepKindImplementations§
Source§impl WizardStep
impl WizardStep
pub const fn leaf(label: &'static str) -> Self
pub const fn optional(label: &'static str) -> Self
pub const fn select(label: &'static str, opts: &'static [&'static str]) -> Self
pub const fn section( label: &'static str, children: &'static [WizardStep], ) -> Self
pub const fn array( label: &'static str, sub_steps: &'static [WizardStep], ) -> Self
pub fn is_section(&self) -> bool
pub fn is_array(&self) -> bool
Sourcepub fn children(&self) -> &'static [WizardStep]
pub fn children(&self) -> &'static [WizardStep]
Children for Section or Array steps; empty for all others.
Auto Trait Implementations§
impl Freeze for WizardStep
impl RefUnwindSafe for WizardStep
impl Send for WizardStep
impl Sync for WizardStep
impl Unpin for WizardStep
impl UnsafeUnpin for WizardStep
impl UnwindSafe for WizardStep
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