this post was submitted on 21 Jul 2023
3 points (80.0% liked)
Rust
6113 readers
8 users here now
Welcome to the Rust community! This is a place to discuss about the Rust programming language.
Wormhole
Credits
- The icon is a modified version of the official rust logo (changing the colors to a gradient and black background)
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
The first problem I saw is that
Widget::render
takesself
by value, meaning that the widget will be destroyed after being rendered once. The need to satisfy that method's type could be the cause of the other errors you're running into.