Skip to main content

static_string_attachment

Macro static_string_attachment 

Source
macro_rules! static_string_attachment {
    ( $type:ident $(,)? ) => { ... };
}
Expand description

Define a &'static str attachment type.

The argument is the type name.

It’s a trivial newtype with a new(Into<&'static str>) constructor.