Module dochy_compaction::basic_compaction [−][src]
Compact integers and booleans
Functions
comp_double | If it’s integer, compact the num to an integer. If it’s 動的型言語でnumがf64に決まっている場合や、静的型言語でf64に戻すことがわかっている場合に縮める事ができる。 |
comp_float | f32が整数で表せるなら整数で、bitやbyteに出来るならそこまで削って表す。 |
comp_int | bitやbyteに出来るならそこまで削って表す。 KVal::as_i64で戻す |
comp_str | 文字列を適切な形式で保存する。 empty stringならbitにする KVal::as_string(&self)を使って戻す |