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§
fn count_zeros(self) -> u64
Implementations on Foreign Types§
source§impl CountZeros for i8
impl CountZeros for i8
source§fn 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.
source§impl CountZeros for i16
impl CountZeros for i16
source§fn 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.
source§impl CountZeros for i32
impl CountZeros for i32
source§fn 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.
source§impl CountZeros for i64
impl CountZeros for i64
source§fn 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.
source§impl CountZeros for i128
impl CountZeros for i128
source§fn 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.
source§impl CountZeros for isize
impl CountZeros for isize
source§fn 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.
source§impl CountZeros for u8
impl CountZeros for u8
source§fn 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.
source§impl CountZeros for u16
impl CountZeros for u16
source§fn 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.
source§impl CountZeros for u32
impl CountZeros for u32
source§fn 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.
source§impl CountZeros for u64
impl CountZeros for u64
source§fn 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.
source§impl CountZeros for u128
impl CountZeros for u128
source§fn 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.
source§impl CountZeros for usize
impl CountZeros for usize
source§fn 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.