Closed LegionMammal978 closed 2 years ago
This is useful for macros such as i18-embed-fl's fl! to accept String values by reference without requiring as_str or slice syntax. It directly corresponds to impl<'a> From<&'a String> for Cow<'a, str>.
fl!
String
as_str
impl<'a> From<&'a String> for Cow<'a, str>
thank you! That looks good!
This is useful for macros such as i18-embed-fl's
fl!
to acceptString
values by reference without requiringas_str
or slice syntax. It directly corresponds toimpl<'a> From<&'a String> for Cow<'a, str>
.