Trait baa::ArrayMutOps

source ·
pub trait ArrayMutOps: ArrayOps {
    // Required method
    fn words_mut(&mut self) -> &mut [Word];

    // Provided methods
    fn store<'a, 'b>(
        &mut self,
        index: impl Into<BitVecValueRef<'a>>,
        data: impl Into<BitVecValueRef<'b>>,
    ) { ... }
    fn select_mut<I: BitVecOps>(&mut self, index: I) -> BitVecValueMutRef<'_> { ... }
    fn assign<'a>(&mut self, value: impl Into<ArrayValueRef<'a>>) { ... }
    fn clear(&mut self) { ... }
}
Expand description

Operations implemented by mutable array values with a dense representation.

Required Methods§

source

fn words_mut(&mut self) -> &mut [Word]

Provided Methods§

source

fn store<'a, 'b>( &mut self, index: impl Into<BitVecValueRef<'a>>, data: impl Into<BitVecValueRef<'b>>, )

source

fn select_mut<I: BitVecOps>(&mut self, index: I) -> BitVecValueMutRef<'_>

source

fn assign<'a>(&mut self, value: impl Into<ArrayValueRef<'a>>)

source

fn clear(&mut self)

sets all bits to zero

Object Safety§

This trait is not object safe.

Implementors§