Trait malachite_base::num::logic::traits::LeadingZeros
source · pub trait LeadingZeros {
// Required method
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§
source§impl LeadingZeros for i8
impl LeadingZeros for i8
source§fn 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.
source§impl LeadingZeros for i16
impl LeadingZeros for i16
source§fn 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.
source§impl LeadingZeros for i32
impl LeadingZeros for i32
source§fn 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.
source§impl LeadingZeros for i64
impl LeadingZeros for i64
source§fn 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.
source§impl LeadingZeros for i128
impl LeadingZeros for i128
source§fn 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.
source§impl LeadingZeros for isize
impl LeadingZeros for isize
source§fn 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.
source§impl LeadingZeros for u8
impl LeadingZeros for u8
source§fn 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.
source§impl LeadingZeros for u16
impl LeadingZeros for u16
source§fn 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.
source§impl LeadingZeros for u32
impl LeadingZeros for u32
source§fn 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.
source§impl LeadingZeros for u64
impl LeadingZeros for u64
source§fn 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.
source§impl LeadingZeros for u128
impl LeadingZeros for u128
source§fn 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.
source§impl LeadingZeros for usize
impl LeadingZeros for usize
source§fn 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.