str-macro

Rust crate for the str!() macro, which makes the conveniences available from vec![] available for String as well.

```rust // String let s = str!(); assert_eq!(s, String::new());

// Vec equivalent let v = vec![]; assert_eq!(v.len(), 0); ```

```rust // Vec equivalent let v = vec!["alpha", "beta", "gamma"]; assert_eq!(v.len(), 3);

// String let s = str!("alpha beta gamma"); assert_eq!(&s, "alpha beta gamma"); let _: String = s; ```

Note that this is automatically implemented for anything that implements Display.

```rust let s = str!(2194); assert_eq!(&s, "2194");

let s = str!(Ipv4Addr::new(127, 0, 0, 1)); assert_eq!(&s, "127.0.0.1"); ```

Copyright

Copyright (C) 2019 Ammon Smith

Available under the MIT License.