Skip to main content

IntoFinishOutcome

Trait IntoFinishOutcome 

Source
pub trait IntoFinishOutcome {
    // Required method
    fn into_finish_outcome(self) -> FinishOutcome;
}
Expand description

Return-type bridge for Stepper::on_finish / Wizard::on_finish callbacks, so the same setter accepts a callback that cannot fail and one that can.

callback returnsoutcome
()Finished (finishing always succeeds)
booltrueFinished, falseRejected
Result<T, E>OkFinished, ErrRejected
FinishOutcomeitself

Required Methods§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl IntoFinishOutcome for ()

Source§

impl IntoFinishOutcome for bool

Source§

impl<T, E> IntoFinishOutcome for Result<T, E>

Implementors§