[][src]Trait linux::util::int::UnsignedInt

pub trait UnsignedInt: Int + Sized {
    fn next_power_of_two(&self) -> Self;
fn checked_next_power_of_two(&self) -> Option<Self>; }

Unsigned integers.

Required methods

fn next_power_of_two(&self) -> Self

Calculates the next power of two greater or equal the current value.

[return_value] The next power of two or 1 on overflow.

fn checked_next_power_of_two(&self) -> Option<Self>

Calculates the next power of two greater or equal the current value.

[return_value] The next power of two or None on overflow.

Loading content...

Implementations on Foreign Types

impl UnsignedInt for u8[src]

impl UnsignedInt for u16[src]

impl UnsignedInt for u32[src]

impl UnsignedInt for u64[src]

impl UnsignedInt for u128[src]

impl UnsignedInt for usize[src]

Loading content...

Implementors

Loading content...