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

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]

pub fn new(bits: T, start: u64, len: u64) -> Self[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: Bits> Bits for BitSliceAdapter<T>[src]

type Block = T::Block

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

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

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

type Slice = Self

The type of the slice produced.

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

type Slice = Self

The type of the slice produced.

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

type Slice = Self

The type of the slice produced.

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

type Slice = Self

The type of the slice produced.

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

type Slice = Self

The type of the slice produced.

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

type Slice = Self

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

type Slice = BitSliceAdapter<&'a T>

The type of the slice produced.

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

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

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

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

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

type Output = bool

The returned type after indexing.

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]