[−][src]Crate int_conv
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 (::<>).
Re-exports
pub use extend::Extend; |
pub use extend::Extended; |
pub use extend::SignExtend; |
pub use extend::SignExtended; |
pub use extend::ZeroExtend; |
pub use extend::ZeroExtended; |
pub use sign::IsSigned; |
pub use sign::IsUnsigned; |
pub use sign::Signed; |
pub use split::Join; |
pub use split::Split; |
pub use trunc::Truncate; |
pub use trunc::Truncated; |
Modules
| extend | Integer extensions |
| sign | Types with signed and unsigned variants |
| split | Integer splitting |
| trunc | Integer truncation |