How do I get information from an entry on button click?
问题 I want to get an input from an entry on a button click and display that information when another button is clicked. This gives me an error because the closure takes ownership of my firstname variable, in which I want to store the information. How do I get the information out of the entry and reuse it? // import gtk libs extern crate gio; extern crate gtk; // declare use of gtk use gtk::prelude::*; fn main() { let mut firstname = String::new(); if gtk::init().is_err() { println!("Failed to