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

source§

type Half = u8

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

source§

impl HasHalf for u32

source§

type Half = u16

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

source§

impl HasHalf for u64

source§

type Half = u32

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

source§

impl HasHalf for u128

source§

type Half = u64

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

Implementors§