Struct qr_encode::qr_encoder::config::QRConfig
[−]
[src]
pub struct QRConfig {
pub version: usize,
pub data: Vec<u8>,
pub codewords: Vec<u8>,
pub codeword_properties: CodeWord,
pub mask: usize,
pub encoding: u8,
pub encoding_mode: EncodingMode,
pub debug_mode: bool,
pub requires_alignment: bool,
pub finder_points: [(usize, usize); 3],
pub size: usize,
pub err_correction_level: ECLevel,
}Fields
version: usize
data: Vec<u8>
codewords: Vec<u8>
codeword_properties: CodeWord
mask: usize
encoding: u8
encoding_mode: EncodingMode
debug_mode: bool
requires_alignment: bool
finder_points: [(usize, usize); 3]
size: usize
err_correction_level: ECLevel
Methods
impl QRConfig[src]
pub fn gen_qr_code(&mut self) -> QR[src]
pub fn get_ecc_length(&self) -> usize[src]
pub fn get_remainder_bit_length(&self) -> isize[src]
pub fn get_mask_pattern(&self, n: usize) -> Box<Fn(usize, usize) -> bool>[src]
pub fn apply_version_information(&self, body: &mut Vec<Cell>)[src]
pub fn encode_format_areas(&self, body: &mut Vec<Cell>, pattern: u8)[src]
pub fn apply_mask_pattern(&self, body: &mut Vec<Cell>, n: usize)[src]
pub fn eval_penalty_scores(&self, body: &Vec<Cell>) -> usize[src]
pub fn penalty_score_eval_two(&self, body: &Vec<Cell>) -> usize[src]
pub fn penalty_score_eval_three(&self, body: &Vec<Cell>) -> usize[src]
pub fn penalty_score_eval_one(&self, body: &Vec<Cell>) -> usize[src]
pub fn penalty_score_eval_four(&self, body: &Vec<Cell>) -> usize[src]
pub fn verify_version(&mut self)[src]
pub fn debug_data(&self)[src]
pub fn encode_error_correction_codewords(&mut self)[src]
pub fn translate_data(&mut self)[src]
pub fn create_body(&self) -> Vec<Cell>[src]
pub fn get_content_length(&self) -> usize[src]
pub fn apply_version_information_areas(&self, body: &mut Vec<Cell>)[src]
pub fn apply_reserve_format_areas(&self, body: &mut Vec<Cell>)[src]
pub fn apply_dark_module(&self, body: &mut Vec<Cell>)[src]
pub fn apply_alignment_patterns(
&self,
body: &mut Vec<Cell>,
points: &Vec<PlotPoint>
)[src]
&self,
body: &mut Vec<Cell>,
points: &Vec<PlotPoint>
)
pub fn apply_separators(
&self,
body: &mut Vec<Cell>,
alignment_point: (usize, usize)
)[src]
&self,
body: &mut Vec<Cell>,
alignment_point: (usize, usize)
)
pub fn apply_finder_patterns(
&self,
body: &mut Vec<Cell>,
alignment_point: Point<usize>
)[src]
&self,
body: &mut Vec<Cell>,
alignment_point: Point<usize>
)
pub fn apply_timer_patterns(&self, body: &mut Vec<Cell>)[src]
pub fn get_alignment_points(&self, body: &Vec<Cell>) -> Vec<PlotPoint>[src]
pub fn get_point_combinations(&self, numbers: Vec<usize>) -> Vec<Point<usize>>[src]
pub fn plot_spiral(
&self,
origin_pt: &Point<usize>,
size: usize,
diff: usize
) -> Vec<PlotPoint>[src]
&self,
origin_pt: &Point<usize>,
size: usize,
diff: usize
) -> Vec<PlotPoint>