Struct qrcode::optimize::Segment [−][src]
A segment of data committed to an encoding mode.
Fields
mode: Mode
The encoding mode of the segment of data.
begin: usize
The start index of the segment.
end: usize
The end index (exclusive) of the segment.
Methods
impl Segment
[src]
impl Segment
pub fn encoded_len(&self, version: Version) -> usize
[src]
pub 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
impl PartialEq for Segment
[src]
impl PartialEq for Segment
fn eq(&self, other: &Segment) -> bool
[src]
fn eq(&self, other: &Segment) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Segment) -> bool
[src]
fn ne(&self, other: &Segment) -> bool
This method tests for !=
.
impl Eq for Segment
[src]
impl Eq for Segment
impl Debug for Segment
[src]
impl Debug for Segment
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Copy for Segment
[src]
impl Copy for Segment
impl Clone for Segment
[src]
impl Clone for Segment