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§

source

fn bitwise_xor(input1: &Rhs, input: &Rhs) -> Rhs

Bitwise XOR of two BigUint inputs

source

fn bitwise_and(input1: &Rhs, input: &Rhs, bytes: usize) -> Rhs

Conjunction of the bits of two BigUint inputs for a given number of bytes

source

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.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl BitwiseOps for BigUint

source§

fn bitwise_xor(input1: &BigUint, input2: &BigUint) -> BigUint

source§

fn bitwise_not(input: &BigUint, bits: Option<usize>) -> BigUint

source§

fn bitwise_and(input1: &BigUint, input2: &BigUint, bytes: usize) -> BigUint

Implementors§