std_macro_extensions/string/macro.rs
/// Creates a new `String` instance.
///
/// This macro can be used in two forms:
/// - Without arguments, it creates an empty `String`.
/// - With a string literal or expression, it creates a `String` initialized with the provided value.
///
/// # Examples
/// ```
/// use std_macro_extensions::*;
/// let empty_string = string!();
/// let hello_string = string!("Hello");
/// ```
#[macro_export]
macro_rules! string {
() => {
std::string::String::new()
};
($s:expr) => {
std::string::String::from($s)
};
}