[][src]Macro stringly_conversions::impl_into_stringly_standard

macro_rules! impl_into_stringly_standard {
    ($type:ty) => { ... };
    ($type:ty, $module_suffix:ty) => { ... };
}

Implements impl_into_stringly for $type and traits with $type

A module is generated internally and its name is derived from the type name. This obviously fails when the type name is generic or contains other non-ident characters. In such case supply the macro with a second argument which is some unique identifier.

The currently supported types are:

  • String
  • Cow<'_, str>,
  • Box<str>,
  • Box<Cow<'_, str>>,
  • Rc<str>,
  • Rc<String>,
  • Rc<Cow<'_, str>>,
  • Arc<str>,
  • Arc<String>,
  • Arc<Cow<'_, str>>,