Trait malachite_base::num::logic::traits::LeadingZeros

source ·
pub trait LeadingZeros {
    // Required method
    fn leading_zeros(self) -> u64;
}
Expand description

Returns the number of leading zeros in the binary representation of a number.

Required Methods§

Implementations on Foreign Types§

source§

impl LeadingZeros for i8

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for i16

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for i32

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for i64

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for i128

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for isize

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for u8

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for u16

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for u32

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for u64

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for u128

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

source§

impl LeadingZeros for usize

source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

Implementors§