Trait arithmetic_eval::arith::DoubleWidth [−][src]
pub trait DoubleWidth: Sized + Unsigned { type Wide: Copy + From<Self> + TryInto<Self> + NumOps + Unsigned; type SignedWide: Copy + From<Self> + TryInto<Self> + NumOps + Zero + One + Signed + PartialOrd; }
Expand description
Encapsulates extension of an unsigned integer type into signed and unsigned double-width types. This allows performing certain operations (e.g., multiplication) without a possibility of integer overflow.
Associated Types
Implementations on Foreign Types
impl DoubleWidth for u8
[src]
impl DoubleWidth for u8
[src]impl DoubleWidth for u16
[src]
impl DoubleWidth for u16
[src]impl DoubleWidth for u32
[src]
impl DoubleWidth for u32
[src]impl DoubleWidth for u64
[src]
impl DoubleWidth for u64
[src]