Macro re_string_interner::declare_new_type

source ·
macro_rules! declare_new_type {
    (
        $(#[$meta:meta])* // capture docstrings; see https://stackoverflow.com/questions/33999341/generating-documentation-in-macros
        $vis:vis struct $StructName:ident;
    ) => { ... };
}
Expand description

Declare a newtype wrapper around InternedString with all the convenience methods you would want.

Usage:

re_string_interner::declare_new_type!(
    /// My typesafe string
    pub struct MyString;
);