Skip to content

Add macro #17

@sffc

Description

@sffc

When using TinyStr, I find that I often want to write strings that should be statically compiled to a TinyStr. Instead, I have to pick between parsing the strings into TinyStr at runtime, or hard-coding the bits into my source file. It would be much nicer if I could do

tiny_str_4!("root");

and have that automatically compile to the TinyStr4 representation of that string (or fail to compile if the string is invalid).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions