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

The encoding mode of the segment of data.

The start index of the segment.

The end index (exclusive) of the segment.

Methods

impl Segment
[src]

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]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Segment
[src]

impl Debug for Segment
[src]

Formats the value using the given formatter. Read more

impl Copy for Segment
[src]

impl Clone for Segment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Segment

impl Sync for Segment