Expand description
std-macro-extensions
A collection of macro extensions for Rust’s standard library data structures, simplifying the creation and manipulation of common collections such as HashMap, Vec, and more.
Macros§
- arc
- Creates a new atomic reference counted pointer.
- b_
tree_ map - Creates a new BTreeMap instance.
- b_
tree_ set - Creates a new BTreeSet instance.
- binary_
heap - Creates a new
BinaryHeap<T>
. - boxed
- Creates a new
Box
instance. - cell
- Creates a new
Cell
instance. - cin
- Read a line from standard input as a
String
. - cin_
parse - Parse input string into a value or a vector of values of a specified type.
- cout
- Print formatted output to standard output using
print!
. - cout_
endl - Print formatted output with a newline and flush the standard output buffer.
- endl
- Print a newline character and flush the standard output buffer.
- execute
- Execute a synchronous function with given arguments.
- execute_
async - Execute an asynchronous function and return a future.
- hash_
map - Creates a new hash map instance.
- hash_
set - Creates a new
HashSet
instance. - join_
paths - Combines multiple paths into a single valid path, handling overlapping slashes.
- linked_
list - Creates a new
LinkedList
instance. - mutex
- Creates a new
Mutex
instance. - rc
- Creates a new
Rc
(Reference Counted) instance. - refcell
- Creates a new
RefCell
instance. - rw_lock
- Creates a new
RwLock
instance. - string
- Creates a new string instance.
- vector
- Creates a new vector instance.
- vector_
deque - Creates a new
VecDeque
instance.