commonsense 0.0.1

Personal ritual library of ergonomic Rust utilities
Documentation
  • Coverage
  • 100%
    2 out of 2 items documented1 out of 1 items with examples
  • Size
  • Source code size: 15.24 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.02 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • glockenmeier/commonsense
    0 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • glockenmeier

commonsense

Crates.io Docs.rs License: MIT OR Apache-2.0

commonsense is a collection of ergonomic rituals for Rust: macros and utilities that encode ownership and intent without hiding their cost.


Features

  • svec! — create a Vec<String> from string literals or expressions.

Example

use commonsense as cs;

fn main() {
    let words = cs::svec!["hello", "world"];
    assert_eq!(words, vec!["hello".to_string(), "world".to_string()]);
}