pub struct WizardStep { /* private fields */ }Expand description
One step of a Wizard.
Implementations§
Source§impl WizardStep
impl WizardStep
Sourcepub fn new(title: impl Into<String>, content: impl View + 'static) -> Self
pub fn new(title: impl Into<String>, content: impl View + 'static) -> Self
A step with this title and content.
Sourcepub fn check(self, check: impl Fn() -> Result<(), String> + 'static) -> Self
pub fn check(self, check: impl Fn() -> Result<(), String> + 'static) -> Self
What has to hold to leave this step forward. The error is shown on the step, and going back never asks.
Sourcepub fn failed(self, failed: bool) -> Self
pub fn failed(self, failed: bool) -> Self
Marks the step as having a problem, in the row of steps at the top, whichever
step is showing. It does not stop anyone from leaving it: Self::check does.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for WizardStep
impl !Send for WizardStep
impl !Sync for WizardStep
impl !UnwindSafe for WizardStep
impl Freeze for WizardStep
impl Unpin for WizardStep
impl UnsafeUnpin 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