[][src]Trait bv::BitsMutExt

pub trait BitsMutExt: BitsMut {
    fn bit_assign<T: Bits<Block = Self::Block>>(&mut self, other: T) { ... }
fn bit_and_assign<T: Bits<Block = Self::Block>>(&mut self, other: T) { ... }
fn bit_or_assign<T: Bits<Block = Self::Block>>(&mut self, other: T) { ... }
fn bit_xor_assign<T: Bits<Block = Self::Block>>(&mut self, other: T) { ... }
fn bit_zip_assign<T, F>(&mut self, other: T, fun: F)
    where
        T: Bits<Block = Self::Block>,
        F: FnMut(Self::Block, Self::Block) -> Self::Block
, { ... } }

Extension trait for mutable operations on bit slices.

Provided methods

fn bit_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)

Assigns the bits of other to self.

Panics

If self.bit_len() != other.bit_len().

fn bit_and_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)

Assigns the bit-wise and of self and other to self.

Panics

If self.bit_len() != other.bit_len().

fn bit_or_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)

Assigns the bit-wise or of self and other to self.

Panics

If self.bit_len() != other.bit_len().

fn bit_xor_assign<T: Bits<Block = Self::Block>>(&mut self, other: T)

Assigns the bit-wise xor of self and other to self.

Panics

If self.bit_len() != other.bit_len().

fn bit_zip_assign<T, F>(&mut self, other: T, fun: F) where
    T: Bits<Block = Self::Block>,
    F: FnMut(Self::Block, Self::Block) -> Self::Block

Performs an op-assignment from other to self.

In particular, the given function is used to combine each block of self with a block of other, assigning the result back to self.

Panics

If self.bit_len() != other.bit_len().

Loading content...

Implementors

impl<T: BitsMut> BitsMutExt for T[src]

Loading content...