[][src]Crate myutil

MyUtil

A useful util-collections for Rust.

Modules

err

MyError

Macros

alt

optimize readable in high-level-functions

d

print debug-info, eg: modular and file path, line number ...

datetime_local

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 MyUtil style

so_le

test assert in MyUtil style

so_ne

test assert in MyUtil style

ts

get current UTC-timestamp

vct

vector operations

Functions

gen_datetime_local
genlog

generate the log string

p

print log

pdie

panic after printing error_chain