[][src]Struct gf::support::bitvec::BitSlice

pub struct BitSlice<'a> { /* fields omitted */ }

An immutable bit slice.

Methods

impl<'a> BitSlice<'a>[src]

pub fn from_byte_slice(slice: &'a [u8]) -> Self[src]

Wrap a byte slice into a bit slice.

pub fn from_byte_slice_prefix(slice: &'a [u8], prefix_bit_len: usize) -> Self[src]

Wrap a prefix of a byte slice into a bit slice.

Errors

  • Panics if prefix_bit_len is greater than number of bits in slice.

Trait Implementations

impl<'a> BitSeq for BitSlice<'a>[src]

impl<'a> Index<usize> for BitSlice<'a>[src]

type Output = bool

The returned type after indexing.

Auto Trait Implementations

impl<'a> Send for BitSlice<'a>

impl<'a> Sync for BitSlice<'a>

impl<'a> Unpin for BitSlice<'a>

impl<'a> UnwindSafe for BitSlice<'a>

impl<'a> RefUnwindSafe for BitSlice<'a>

Blanket Implementations

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

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

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]