Expand description
§Helper
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
§License
MulanPSL-2.0
Macros§
- btmap
- Create
std::collections::BTreeMap
from list of key-value pairs. - btset
- Create a
std::collections::BTreeSet
from a list of elements. - either
- Ternary operator in many C-like languages.
- hmap
- Create
std::collections::HashMap
from list of key-value pairs. - hset
- Create a
std::collections::HashSet
from a list of elements. - option
Deprecated - The
std::option::Option
relative operations. - try_
option - Unwrap
std::option::Option
, if none, return the alternative value.