Trait malachite_base::num::conversion::traits::HasHalf

source ·
pub trait HasHalf {
    type Half;
}
Expand description

Associates with Self a type that’s half Self’s size.

Required Associated Types§

source

type Half

The type that’s half the size of Self.

Implementations on Foreign Types§

source§

impl HasHalf for u16

§

type Half = u8

The primitive integer type whose width is half of Self’s.

source§

impl HasHalf for u32

§

type Half = u16

The primitive integer type whose width is half of Self’s.

source§

impl HasHalf for u64

§

type Half = u32

The primitive integer type whose width is half of Self’s.

source§

impl HasHalf for u128

§

type Half = u64

The primitive integer type whose width is half of Self’s.

Implementors§