Trait 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§