5 releases
0.1.4 | Oct 27, 2020 |
---|---|
0.1.3 | Oct 24, 2020 |
0.1.2 | Oct 22, 2020 |
0.1.1 | Oct 22, 2020 |
0.1.0 | Oct 22, 2020 |
#2019 in Encoding
61 downloads per month
Used in flac-tracksplit
42KB
791 lines
inv-conv
Integer conversions for Rust.
This library provides explicit integer conversions to use instead of as
.
See the documentation for more details
lib.rs
:
Integer conversions
This crate provides explicit conversions between integer types.
Features
ZeroExtend
/SignExtend
/Extend
: Extend from a smaller to larger integer.Signed
/IsSigned
/IsUnsigned
: Interchange between signed and unsigned types.Truncate
: Truncate integers.Split
/Join
: Split integers in half and joins them back together.
Various helpers are also provided to be used with the turbofish syntax (::<>
).
Dependencies
~42KB