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

Implementations on Foreign Types§

Source§

impl LeadingZeros for i8

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

fn leading_zeros(self) -> u64

This is a wrapper over the leading_zeros functions in the standard library, for example this one.

Implementors§