Function slash_formatter::add_start_slash
source · pub fn add_start_slash<S: ?Sized + AsRef<str>>(s: &S) -> Cow<'_, str>
Expand description
Add a starting slash into a string.
assert_eq!("/path", slash_formatter::add_start_slash("path"));