Trait bitmaps::BitOps [−][src]
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 first_false_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
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
Implementations on Foreign Types
impl BitOps for bool
[src]
impl BitOps for bool
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for u8
[src]
impl BitOps for u8
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for u16
[src]
impl BitOps for u16
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for u32
[src]
impl BitOps for u32
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for u64
[src]
impl BitOps for u64
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for u128
[src]
impl BitOps for u128
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn make_mask(shift: usize) -> Self
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 2]
[src]
impl BitOps for [u128; 2]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 3]
[src]
impl BitOps for [u128; 3]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 4]
[src]
impl BitOps for [u128; 4]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 5]
[src]
impl BitOps for [u128; 5]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 6]
[src]
impl BitOps for [u128; 6]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 7]
[src]
impl BitOps for [u128; 7]
[src]fn get(bits: &Self, index: usize) -> bool
[src]
fn set(bits: &mut Self, index: usize, value: bool) -> bool
[src]
fn make_mask(shift: usize) -> Self
[src]
fn len(bits: &Self) -> usize
[src]
fn first_index(bits: &Self) -> Option<usize>
[src]
fn first_false_index(bits: &Self) -> Option<usize>
[src]
fn bit_and(bits: &mut Self, other_bits: &Self)
[src]
fn bit_or(bits: &mut Self, other_bits: &Self)
[src]
fn bit_xor(bits: &mut Self, other_bits: &Self)
[src]
fn invert(bits: &mut Self)
[src]
fn to_hex(bits: &Self) -> String
[src]
impl BitOps for [u128; 8]
[src]
impl BitOps for [u128; 8]
[src]