Trait rotary::bit_set::Number[][src]

pub trait Number: Bits {
    const BITS: usize;

    fn trailing_zeros(self) -> usize;
fn is_zero(self) -> bool; }

Basic numerical traits for the plumbing of a bit set.

Associated Constants

const BITS: usize[src]

How many bits there are in this number.

Loading content...

Required methods

fn trailing_zeros(self) -> usize[src]

Number of trailing zeros.

fn is_zero(self) -> bool[src]

Test if the number is zero.

Loading content...

Implementations on Foreign Types

impl Number for u128[src]

impl Number for u64[src]

impl Number for u32[src]

impl Number for u16[src]

impl Number for u8[src]

Loading content...

Implementors

Loading content...