A collection of convenience functions, macros and traits to shorten repetitive code.
passively-maintained
0.2
Shorten the conversion to a String.
s!("Hello")
is the same as String::from("Hello"))
Concatenate two string(s) (slices) and return a string slice.
ss!("Hello", ", world")
is the same as "Hello, world";
The same macro works also with an arbitrary combination of String objects and string slices
```rust
use shorten::*; let s1 = s!("Hello"); let s2 = s!(", world"); assert_eq!(ss!(s1, s2), "Hello, world"); ```
// #[macro_use] extern crate shorten; ```rust
use shorten::*; let s1 = s!("Hello"); let s2 = s!(", world"); assert_eq!(ss!(s1, s2), "Hello, world"); ```