Struct qrcode::optimize::Segment
[−]
[src]
pub struct Segment { pub mode: Mode, pub begin: usize, pub end: usize, }
A segment of data committed to an encoding mode.
Fields
mode | The encoding mode of the segment of data. |
begin | The start index of the segment. |
end | The end index (exclusive) of the segment. |
Methods
impl Segment
[src]
fn encoded_len(&self, version: Version) -> usize
Compute the number of bits (including the size of the mode indicator and length bits) when this segment is encoded.
Trait Implementations
Derived Implementations
impl Clone for Segment
[src]
fn clone(&self) -> Segment
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more