helper

Crates.iohelper
lib.rshelper
version3.3.0
sourcesrc
created_at2019-06-08 15:33:56.668309
updated_at2022-07-29 09:58:57.085077
descriptionA library provided some useful proc macros for Rust.
homepage
repositoryhttps://github.com/jmjoy/helper
max_upload_size
id139831
size41,664
jmjoy (jmjoy)

documentation

README

Helper

Rust Crate API

A library provided some useful proc macros for Rust.

Macros

  • control flow

    • either: Ternary operator in many C-like languages.
    • try_option: Unwrap std::option::Option, if none, return the alternative value.
  • collections

    • btmap: Create std::collections::BTreeMap from list of key-value pairs.
    • btset: Create a std::collections::BTreeSet from a list of elements.
    • hmap: Create std::collections::HashMap from list of key-value pairs.
    • hset: Create a std::collections::HashSet from a list of elements.

License

MulanPSL-2.0

Commit count: 27

cargo fmt