pub fn button<F: Fn() + 'static>(name: &str, f: F) -> Button<F> {
    Button {
        text: String::from(name),
        func: f,
    }
}
/// Create a button with a label and an action.
Create a button with a label and an action.
Create a button with a label and an action .
pub fn button<F: Fn() + 'static>(name: &str, f: F) -> Button<F> {
    Button {
        text: String::from(name),
        func: f,
    }
}
pub fn button < F : Fn ( ) + ' static > ( name : & str , f : F ) -> Button < F > { Button { text : String :: from ( name ) , func : f , } }
Create a button with a label and an action.
Create a button with a label and an action .
name
&str
f
F
name
&str
f
F