[][src]Trait bitmaps::BitOps

pub trait BitOps {
    fn get(bits: &Self, index: usize) -> bool;
fn set(bits: &mut Self, index: usize, value: bool) -> bool;
fn len(bits: &Self) -> usize;
fn first_index(bits: &Self) -> Option<usize>;
fn bit_and(bits: &mut Self, other_bits: &Self);
fn bit_or(bits: &mut Self, other_bits: &Self);
fn bit_xor(bits: &mut Self, other_bits: &Self);
fn invert(bits: &mut Self);
fn make_mask(shift: usize) -> Self;
fn to_hex(bits: &Self) -> String; }

A trait that defines generalised operations on a Bits::Store type.

Required methods

fn get(bits: &Self, index: usize) -> bool

fn set(bits: &mut Self, index: usize, value: bool) -> bool

fn len(bits: &Self) -> usize

fn first_index(bits: &Self) -> Option<usize>

fn bit_and(bits: &mut Self, other_bits: &Self)

fn bit_or(bits: &mut Self, other_bits: &Self)

fn bit_xor(bits: &mut Self, other_bits: &Self)

fn invert(bits: &mut Self)

fn make_mask(shift: usize) -> Self

fn to_hex(bits: &Self) -> String

Loading content...

Implementations on Foreign Types

impl BitOps for bool[src]

impl BitOps for u8[src]

impl BitOps for u16[src]

impl BitOps for u32[src]

impl BitOps for u64[src]

impl BitOps for u128[src]

impl BitOps for [u128; 2][src]

impl BitOps for [u128; 3][src]

impl BitOps for [u128; 4][src]

impl BitOps for [u128; 5][src]

impl BitOps for [u128; 6][src]

impl BitOps for [u128; 7][src]

impl BitOps for [u128; 8][src]

Loading content...

Implementors

Loading content...