Skip to content

Accessing args for a parsed ICU string #9

@bbqsrc

Description

@bbqsrc

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:

pub fn some_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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions