How in rust do you import a submodule #2916
Answered
by
davidhewitt
Catmanpooh
asked this question in
Questions
-
So in python it will be something like from x import y. What does this look like in rust? I can do import but from there I am stuck. |
Beta Was this translation helpful? Give feedback.
Answered by
davidhewitt
Jan 27, 2023
Replies: 1 comment 1 reply
-
|
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
Catmanpooh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
py.import("x")?.getattr("y")?
should do it.