Crate ruc[−][src]
RUC
A useful util-collections for Rust.
Modules
err | RucError |
Macros
alt | optimize readable in high-level-functions |
d | print debug-info, eg: modular and file path, line number … |
datetime | get current native-local-datatime(+8) |
die | Just a panic |
eg | Generate error with debug info |
info | print infomation only |
info_omit | drop the result afeter printing the message |
map | map operations |
ok | an |
omit | omit the result without printing any message |
pd | print msg those impl |
pnk | print log, and panic |
sleep_ms | sleep in milliseconds |
so_eq | test assert in |
so_le | test assert in |
so_ne | test assert in |
ts | get current UTC-timestamp |
vct | vector operations |
Functions
gen_datetime | generate a ‘formated +8 datetime’ |
genlog | generate the log string |
genlog_debug | generate log in the original |
p | print log |
p_debug | print log in |
pdie | panic after printing |
pdie_debug | panic after printing |