diff --git a/src/experimental/to_string.rs b/src/experimental/to_string.rs index 8337712..83ed1ff 100644 --- a/src/experimental/to_string.rs +++ b/src/experimental/to_string.rs @@ -1 +1,15 @@ // +#![allow(unused)] + +/// Converts the parameter into a [String] using the [Into] trait. +pub fn s(v: impl Into) -> String { + v.into() +} + +/// Converts the parameter into a [String] by calling `.to_string()`. +#[macro_export] +macro_rules! s { + ($value:expr) => { + $value.to_string() + }; +}