Module awint_ext::prelude[][src]

Structs

ExtAwi

An arbitrary width integer with manually controlled bitwidth. Most arithmetic is wrapping like Rust’s integers. All reallocations are explicit.

Functions

bits_to_string_radix

Creates a string representing self. This function performs allocation. This does the same thing as bits_to_vec_radix except with a String.

bits_to_vec_radix

Creates a Vec<u8> representing self. This function performs allocation. This is a wrapper around awint_core::Bits::to_bytes_radix that truncates leading zeros and possibly adds - as a sign indicator. An additional minimum_chars specifies the minimum number of characters that should exist. If the sign indicator plus significand length is less than minimum_chars, zeros will be filled between the sign indicator and significand, just like Rust’s built in {:0d} formatting.