You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not sure if possible to do it in a similarily magic way as the rest of your code, but something like this would be great:
Failed to foo, do you want to continue? ( y[es] / n[o] / r[etry] )
With code similar to this (using e.g. strum crate for enum introspection)
#[derive(Debug,EnumIter)]pubenumYNR{Yes,No,Retry,}loop{matchprompt("Failed to foo, do you want to continue?")? {YNR::Yes => ..
YNR::No => ..
YNR::Retry => continue,}}
The text was updated successfully, but these errors were encountered:
I'm not sure if possible to do it in a similarily magic way as the rest of your code, but something like this would be great:
With code similar to this (using e.g.
strum
crate for enum introspection)The text was updated successfully, but these errors were encountered: