Struct bv::adapter::BitConcat [−][src]
pub struct BitConcat<T, U>(_, _);
The result of
BitsExt::bit_concat
.
The resulting bit vector adapter concatenates the bits of the two underlying bit-vector-likes.
Trait Implementations
impl<T: Debug, U: Debug> Debug for BitConcat<T, U>
[src]
impl<T: Debug, U: Debug> Debug for BitConcat<T, U>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<T: Clone, U: Clone> Clone for BitConcat<T, U>
[src]
impl<T: Clone, U: Clone> Clone for BitConcat<T, U>
fn clone(&self) -> BitConcat<T, U>
[src]
fn clone(&self) -> BitConcat<T, U>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<T, U> Bits for BitConcat<T, U> where
T: Bits,
U: Bits<Block = T::Block>,
[src]
impl<T, U> Bits for BitConcat<T, U> where
T: Bits,
U: Bits<Block = T::Block>,
type Block = T::Block
The underlying block type used to store the bits of the vector.
fn bit_len(&self) -> u64
[src]
fn bit_len(&self) -> u64
The length of the slice in bits.
fn get_bit(&self, position: u64) -> bool
[src]
fn get_bit(&self, position: u64) -> bool
Gets the bit at position
Read more
fn get_block(&self, position: usize) -> Self::Block
[src]
fn get_block(&self, position: usize) -> Self::Block
Gets the block at position
Read more
fn block_len(&self) -> usize
[src]
fn block_len(&self) -> usize
The length of the slice in blocks.
fn get_bits(&self, start: u64, count: usize) -> Self::Block
[src]
fn get_bits(&self, start: u64, count: usize) -> Self::Block
Gets count
bits starting at bit index start
, interpreted as a little-endian integer. Read more
fn to_bit_vec(&self) -> BitVec<Self::Block>
[src]
fn to_bit_vec(&self) -> BitVec<Self::Block>
Copies the bits into a new allocated [BitVec
]. Read more
impl<T, U, V> PartialEq<V> for BitConcat<T, U> where
T: Bits,
U: Bits<Block = T::Block>,
V: Bits<Block = T::Block>,
[src]
impl<T, U, V> PartialEq<V> for BitConcat<T, U> where
T: Bits,
U: Bits<Block = T::Block>,
V: Bits<Block = T::Block>,
fn eq(&self, other: &V) -> bool
[src]
fn eq(&self, other: &V) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl<T: Bits, U: Bits<Block = T::Block>> Index<u64> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> Index<u64> for BitConcat<T, U>
type Output = bool
The returned type after indexing.
fn index(&self, index: u64) -> &bool
[src]
fn index(&self, index: u64) -> &bool
Performs the indexing (container[index]
) operation.
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<Range<u64>> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<Range<u64>> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: Range<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: Range<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeTo<u64>> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeTo<u64>> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFull> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFull> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, _range: RangeFull) -> Self::Slice
[src]
fn bit_slice(self, _range: RangeFull) -> Self::Slice
Slices or re-slices the given object. Read more
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for BitConcat<T, U>
[src]
impl<T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<Range<u64>> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<Range<u64>> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: Range<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: Range<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFrom<u64>> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeFrom<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeTo<u64>> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeTo<u64>> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeTo<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFull> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeFull> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, _range: RangeFull) -> Self::Slice
[src]
fn bit_slice(self, _range: RangeFull) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeInclusive<u64>> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeInclusive<u64>) -> Self::Slice
Slices or re-slices the given object. Read more
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for &'a BitConcat<T, U>
[src]
impl<'a, T: Bits, U: Bits<Block = T::Block>> BitSliceable<RangeToInclusive<u64>> for &'a BitConcat<T, U>
type Slice = BitSliceAdapter<Self>
The type of the slice produced.
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
[src]
fn bit_slice(self, range: RangeToInclusive<u64>) -> Self::Slice
Slices or re-slices the given object. Read more