Macro string

Source
macro_rules! string {
    () => { ... };
    ($s:expr) => { ... };
}
Expand description

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.