Trait bit_utils::BitInformation [] [src]

pub trait BitInformation {
    fn number_of_bits(&self) -> usize;
    fn has_x_bit(&self, position: usize) -> bool;

    fn is_bit_in_bounds(&self, position: usize) -> bool { ... }
    fn has_most_signifigant_bit(&self) -> bool { ... }
}

Required Methods

Gets the number of bits contained in this type

Checks to see if bit X is set

Provided Methods

Checks to see if the requested bit position is in bounds

Checks to see if the most signifigant bit is set

Implementors