Trait o1_utils::bitwise_operations::BitwiseOps
source · pub trait BitwiseOps<Rhs = Self> {
// Required methods
fn bitwise_xor(input1: &Rhs, input: &Rhs) -> Rhs;
fn bitwise_and(input1: &Rhs, input: &Rhs, bytes: usize) -> Rhs;
fn bitwise_not(input: &Rhs, bits: Option<usize>) -> Rhs;
}
Expand description
Bitwise operations
Required Methods§
sourcefn bitwise_xor(input1: &Rhs, input: &Rhs) -> Rhs
fn bitwise_xor(input1: &Rhs, input: &Rhs) -> Rhs
Bitwise XOR of two BigUint inputs
sourcefn bitwise_and(input1: &Rhs, input: &Rhs, bytes: usize) -> Rhs
fn bitwise_and(input1: &Rhs, input: &Rhs, bytes: usize) -> Rhs
Conjunction of the bits of two BigUint inputs for a given number of bytes
sourcefn bitwise_not(input: &Rhs, bits: Option<usize>) -> Rhs
fn bitwise_not(input: &Rhs, bits: Option<usize>) -> Rhs
Negate the bits of a Self input
If it provides a larger desired bits
than the input length then it takes the padded input of bits
length.
Otherwise it only takes the bits of the input.