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 returns | outcome |
|---|---|
() | Finished (finishing always succeeds) |
bool | true → Finished, false → Rejected |
Result<T, E> | Ok → Finished, Err → Rejected |
FinishOutcome | itself |
Required Methods§
fn into_finish_outcome(self) -> FinishOutcome
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".