small docs tweak

This commit is contained in:
Toby Lawrence 2020-11-15 16:42:43 -05:00
parent ee379362f5
commit ba0530e2cd
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,9 @@ use crate::cow::Cow;
/// We specify `SharedString` to attempt to get the best of both worlds: flexibility to provide a
/// static or dynamic (owned) string, while retaining the performance benefits of being able to
/// take ownership of owned strings and borrows of completely static strings.
///
/// `SharedString` can be converted to from either `&'static str` or `String`, with a method,
/// `const_str`, from constructing `SharedString` from `&'static str` in a `const` fashion.
pub type SharedString = Cow<'static, str>;
/// Units for a given metric.