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

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.

Implementations

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

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 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

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

Returns a copy of the value. 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 !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

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.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.