Skip to content

Instantly share code, notes, and snippets.

@sireliah
Last active February 23, 2019 17:04
Show Gist options
  • Select an option

  • Save sireliah/77a802edbab223a7b34e0470a7db011c to your computer and use it in GitHub Desktop.

Select an option

Save sireliah/77a802edbab223a7b34e0470a7db011c to your computer and use it in GitHub Desktop.
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