How can I run an application with a flag that contains a reference? #854
Unanswered
ma3103yd-s
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I'm still learning rust but I was able to supply static reference of struct to flags. From the source code of
So if i'm not mistaken, the Window3D needs to be static meaning that its field that you want to assign a reference needs also to be static type. From my code:
Then to start the UI: Please correct me if said something wrong. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basically I am trying to send a struct containing a reference to a dynamic matrix as a flag when running the application. I am getting an error because it says my reference needs to be static. Below is my code.
Basically Surface3D is a struct containing references to my matrices X,Y and Z and Plot3D is another struct containing a Surface3D. I am then trying to send my plot as a flag to my Window3D which implements application.
Beta Was this translation helpful? Give feedback.
All reactions