Trait BitManipulation

Source
pub trait BitManipulation {
    // Required methods
    fn set_bit(&mut self, bit: usize, bit_val: bool);
    fn test_bit(&self, bit: usize) -> bool;
}
Expand description

Allow bit manipulation across BigInts

Required Methods§

Source

fn set_bit(&mut self, bit: usize, bit_val: bool)

Set a given bit

Source

fn test_bit(&self, bit: usize) -> bool

Test value of given bit

Implementations on Foreign Types§

Source§

impl BitManipulation for Mpz

Source§

fn set_bit(&mut self, bit: usize, bit_val: bool)

Source§

fn test_bit(&self, bit: usize) -> bool

Implementors§