Struct bv::adapter::BitSliceAdapter[][src]

pub struct BitSliceAdapter<T> { /* fields omitted */ }

An adapter that turns any implementation of Bits into a slice.

This is likely less efficient than BitSlice.

Methods

impl<T: Bits> BitSliceAdapter<T>
[src]

Creates a new slice adaptor from the given bit-vector-like.

Takes the index of the start bit, and the length to slice.

Panics

Out of bounds if start + len > bits.bit_len().

Trait Implementations

impl<T: Copy> Copy for BitSliceAdapter<T>
[src]

impl<T: Clone> Clone for BitSliceAdapter<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for BitSliceAdapter<T>
[src]

Formats the value using the given formatter. Read more

impl<T, U> PartialEq<U> for BitSliceAdapter<T> where
    T: Bits,
    U: Bits<Block = T::Block>, 
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<T: Bits> Bits for BitSliceAdapter<T>
[src]

The underlying block type used to store the bits of the vector.

The length of the slice in bits.

Gets the bit at position Read more

Gets the block at position, masked as necessary. Read more

Gets count bits starting at bit index start, interpreted as a little-endian integer. Read more

The length of the slice in blocks.

Gets the block at position, without masking. Read more

Copies the bits into a new allocated [BitVec]. Read more

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

Sets the bit at position to value. Read more

Sets the block at position to value. Read more

Sets count bits starting at bit index start, interpreted as a little-endian integer. Read more

impl<T: Bits> Index<u64> for BitSliceAdapter<T>
[src]

The returned type after indexing.

Performs the indexing (container[index]) operation.

impl<T: Bits> BitSliceable<Range<u64>> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<T: Bits> BitSliceable<RangeTo<u64>> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<T: Bits> BitSliceable<RangeFrom<u64>> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<T: Bits> BitSliceable<RangeFull> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<T: Bits> BitSliceable<RangeInclusive<u64>> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<T: Bits> BitSliceable<RangeToInclusive<u64>> for BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<Range<u64>> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<RangeTo<u64>> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<RangeFrom<u64>> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<RangeFull> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<RangeInclusive<u64>> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

impl<'a, T: Bits> BitSliceable<RangeToInclusive<u64>> for &'a BitSliceAdapter<T>
[src]

The type of the slice produced.

Slices or re-slices the given object. Read more

Auto Trait Implementations

impl<T> Send for BitSliceAdapter<T> where
    T: Send

impl<T> Sync for BitSliceAdapter<T> where
    T: Sync