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
I am writing a wrapper for string formatting, so that a string like There are {foo} apples. with an identifier some_string can be accessed like so in Rust:
pubfnsome_string(foo:&str) -> String{
...}
Right now it does not seem possible to access Args from anywhere because they are not attached to any struct but generated on the fly by a macro.
What is the suggested course of action for getting access to the Args at the moment? I don't mind if it's a bit round-about, as it will only be used from a build.rs script. Thanks!
The text was updated successfully, but these errors were encountered:
What do you want to do with the args? Your example mentioned a variable foo, but an identifier some_string, so I am not sure what you're looking to do.
I am writing a wrapper for string formatting, so that a string like
There are {foo} apples.
with an identifiersome_string
can be accessed like so in Rust:Right now it does not seem possible to access Args from anywhere because they are not attached to any struct but generated on the fly by a macro.
What is the suggested course of action for getting access to the Args at the moment? I don't mind if it's a bit round-about, as it will only be used from a build.rs script. Thanks!
The text was updated successfully, but these errors were encountered: