Module dochy_compaction::basic_compaction[][src]

Expand description

Compact integers and booleans

Functions

If it’s integer, compact the num to an integer. If it’s 動的型言語でnumがf64に決まっている場合や、静的型言語でf64に戻すことがわかっている場合に縮める事ができる。

f32が整数で表せるなら整数で、bitやbyteに出来るならそこまで削って表す。

bitやbyteに出来るならそこまで削って表す。 KVal::as_i64で戻す

文字列を適切な形式で保存する。 empty stringならbitにする KVal::as_string(&self)を使って戻す