Struct qrcodegen::BitBuffer

source ·
pub struct BitBuffer(pub Vec<bool>);
Expand description

An appendable sequence of bits (0s and 1s).

Mainly used by QrSegment.

Tuple Fields

0: Vec<bool>

Implementations

Appends the given number of low-order bits of the given value to this buffer.

Requires len ≤ 31 and val < 2len.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.