You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and so far it compiles fine. But obviously when I want to change the page I need to reassign the current_app_page field to the new transitioned state problems arise because of the field's type:
Hey @IAMSolaara, I am grateful you took the time to experiment with the crate! No worries about the issue quality, the project was developed as my MSc thesis and I'll be the first to admit it isn't production ready, maybe someday and issues like these definitely help!
Should I make my whole App struct generic over my PageState?
The answer is yes, there's really no other way about it. I know this has really big implications but it's an implicit issue that comes from the advantages of Rust's type system.
Hello, I'm trying to use this crate to make my egui app's page navigation.
I have this in my app:
I want to put this inside my egui app's
App
struct:and so far it compiles fine. But obviously when I want to change the page I need to reassign the
current_app_page
field to the new transitioned state problems arise because of the field's type:How do I go about this?
Should I make my whole App struct generic over my PageState?
I apologize for the quality of this issue but I really don't know what would be a good way to do this.
The text was updated successfully, but these errors were encountered: