pub fn error_quit<E: Into<Error>>(e: E) -> Dialog {
    let e = e.into();
    Dialog::text(format!("{:?}", e))
        .title("Error")
        .button("Ok", |root| root.quit())
}
/// Dialog with error message, quits the application.
Dialog with error message, quits the application.
Dialog with error message quits the application .
pub fn error_quit<E: Into<Error>>(e: E) -> Dialog {
    let e = e.into();
    Dialog::text(format!("{:?}", e))
        .title("Error")
        .button("Ok", |root| root.quit())
}
pub fn error_quit < E : Into < Error > > ( e : E ) -> Dialog { let e = e . into ( ) ; Dialog :: text ( format ! ( " " e ) ) . title ( " " ) . button ( " " , | root | root . quit ( ) ) }
Dialog with error message, quits the application.
Dialog with error message quits the application .
e
E
e
E