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 ok wrapper

omit

omit the result without printing any message

pd

print msg those impl fmt::Display

pnk

print log, and panic

sleep_ms

sleep in milliseconds

so_eq

test assert in RUC style

so_le

test assert in RUC style

so_ne

test assert in RUC style

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 rust debug format

p

print log

p_debug

print log in rust debug format

pdie

panic after printing error_chain

pdie_debug

panic after printing error_chain