Trait malachite_base::num::logic::traits::CountZeros
source · [−]pub trait CountZeros {
fn count_zeros(self) -> u64;
}
Expand description
Returns the number of zeros in the binary representation of a number.
Required Methods
fn count_zeros(self) -> u64
Implementations on Foreign Types
sourceimpl CountZeros for u8
impl CountZeros for u8
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for u16
impl CountZeros for u16
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for u32
impl CountZeros for u32
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for u64
impl CountZeros for u64
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for u128
impl CountZeros for u128
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for usize
impl CountZeros for usize
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for i8
impl CountZeros for i8
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for i16
impl CountZeros for i16
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for i32
impl CountZeros for i32
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for i64
impl CountZeros for i64
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for i128
impl CountZeros for i128
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.
sourceimpl CountZeros for isize
impl CountZeros for isize
sourcefn count_zeros(self) -> u64
fn count_zeros(self) -> u64
This is a wrapper over the count_zeros
functions in the standard library, for
example this one.