Trait malachite_base::num::logic::traits::CountZeros

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

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

Required Methods§

Implementations on Foreign Types§

source§

impl CountZeros for i8

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for i16

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for i32

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for i64

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for i128

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for isize

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for u8

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for u16

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for u32

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for u64

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for u128

source§

fn count_zeros(self) -> u64

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

source§

impl CountZeros for usize

source§

fn count_zeros(self) -> u64

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

Implementors§