Expand description

BitSlice Wide Reference

This module defines semantic operations on [u1], in contrast to the mechanical operations defined in BitPtr.

The &BitSlice handle has the same size and general layout as the standard Rust slice handle &[T]. Its binary layout is wholly incompatible with the layout of Rust slices, and must never be interchanged except through the provided APIs. !

Structs

Proxy referential type, equivalent to &mut bool.

A compact slice of bits, whose order and storage types can be customized.

An iterator over a slice in (non-overlapping) chunks (width bits at a time), starting at the beginning of the slice.

An iterator over a slice in (non-overlapping) chunks (width bits at a time), starting at the beginning of the slice.

An iterator over a slice in (non-ovelapping) mutable chunks (width bits at a time), starting at the beginning of the slice.

An iterator over a slice in (non-overlapping) mutable chunks (width bits at a time), starting at the beginning of the slice.

Immutable slice iterator

Mutable slice iterator.

An iterator over a slice in (non-overlapping) chunks (width bits at a time), starting at the end of the slice.

An iterator over a slice in (non-overlapping) chunks (width bits at a time), starting at the end of the slice.

An iterator over a slice in (non-overlapping) mutable chunks (width bits at a time), starting at the end of the slice.

An iterator over a slice in (non-overlapping) mutable chunks (width bits at a time), starting at the end of the slice.

An iterator over subslices separated by bits that satisfy a predicate function, starting from the end of the slice.

An iterator over subslices separated by bits that satisfy a predicate function, starting from the end of the slice.

An iterator over subslices separated by positions that satisfy a predicate function, limited to a given number of splits, starting from the end of the slice.

An iterator over mutable subslices separated by positions that satisfy a predicate function, limited to a given number of splits, starting from the end of the slice.

An iterator over subslices separated by bits that satisfy a predicate function.

An iterator over subslices separated by positions that satisfy a predicate function.

An iterator over subslices separated by positions that satisfy a predicate function, limited to a given number of splits.

An iterator over mutable subslices separated by positions that satisfy a predicate function, limited to a given number of splits.

An iterator over overlapping subslices of some width.

Traits

Allows a type to be used as a sequence of immutable bits.

Functions

Forms a BitSlice from a pointer, starting position, and length.

Performs the same functionality as bits_from_raw_parts, except that a mutable slice is returned.

Converts a reference to T into a BitSlice of that element (without copying).

Forms a bit slice from a pointer and a length.

Performs the same functionality as from_raw_parts, except that a mutable slice is returned.

Converts a reference to T into a bit slice one element long (without copying).