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