Last active
February 23, 2019 17:04
-
-
Save sireliah/77a802edbab223a7b34e0470a7db011c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let image_wrapper = ImageWrapper::new(); | |
| // Add newly generated image. | |
| image_wrapper.set_image(image_gtk); | |
| // Remove existing image from the wrapper struct. | |
| match image_wrapper.get_image() { | |
| Ok(image) => box_vert.remove(&image), | |
| Err(e) => println!("{}", e), | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment