pub struct BitSliceAdapter<T> { /* fields omitted */ }
Expand description
An adapter that turns any implementation of Bits
into a slice.
This is likely less efficient than BitSlice
.
Creates a new slice adaptor from the given bit-vector-like.
Takes the index of the start bit, and the length to slice.
Out of bounds if start + len > bits.bit_len()
.
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The type of the slice produced.
Slices or re-slices the given object. Read more
The underlying block type used to store the bits of the vector.
The length of the slice in bits.
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
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
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
The returned type after indexing.
Performs the indexing (container[index]
) operation. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.