stringvec 0.1.0

A simple macro for creating Vec<String> from various types
Documentation
  • Coverage
  • 75%
    3 out of 4 items documented2 out of 2 items with examples
  • Size
  • Source code size: 43.02 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 170.81 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • bednie/stringvec
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • bednie

stringvec

ci

A simple Rust macro for creating Vec<String> from various types.

Usage

Add this to your Cargo.toml:

[dependencies]
stringvec = "0.1.0"

Then, in your Rust code:

use stringvec::stringvec;

fn main() {
    let words = stringvec!["cat", 11, 'A', 3.5];
    println!("{:?}", words);
    // Output: ["cat", "11", "A", "3.5"]
}

Features

  • Easy creation of Vec<String> from various types
  • Automatic conversion to String using to_string()
  • Utility function is_string() to check if a value is a String

License

This project is licensed under the GNU Lesser General Public License v3.0 or later - see the LICENSE file for details.