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
Implementations§
Source§impl QRConfig
impl QRConfig
pub fn gen_qr_code(&mut self) -> (QR, CellTrack)
pub fn get_ecc_length(&self) -> usize
pub fn get_remainder_bit_length(&self) -> isize
pub fn get_mask_pattern(&self, n: usize) -> Box<dyn Fn(usize, usize) -> bool>
pub fn apply_version_information(&self, body: &mut Vec<Cell>)
pub fn encode_format_areas(&self, body: &mut Vec<Cell>, pattern: u8)
pub fn apply_mask_pattern(&self, body: &mut Vec<Cell>, n: usize)
pub fn eval_penalty_scores(&self, body: &Vec<Cell>) -> usize
pub fn penalty_score_eval_two(&self, body: &Vec<Cell>) -> usize
pub fn penalty_score_eval_three(&self, body: &Vec<Cell>) -> usize
pub fn penalty_score_eval_one(&self, body: &Vec<Cell>) -> usize
pub fn penalty_score_eval_four(&self, body: &Vec<Cell>) -> usize
pub fn verify_version(&mut self)
pub fn debug_data(&self)
pub fn encode_error_correction_codewords(&mut self)
pub fn translate_data(&mut self)
pub fn create_body(&self) -> Vec<Cell>
pub fn get_content_length(&self) -> usize
pub fn apply_version_information_areas(&self, body: &mut Vec<Cell>)
pub fn apply_reserve_format_areas(&self, body: &mut Vec<Cell>)
pub fn apply_dark_module(&self, body: &mut Vec<Cell>)
pub fn apply_alignment_patterns( &self, body: &mut Vec<Cell>, points: &Vec<PlotPoint>, )
pub fn apply_separators( &self, body: &mut Vec<Cell>, alignment_point: (usize, usize), )
pub fn apply_finder_patterns( &self, body: &mut Vec<Cell>, alignment_point: Point<usize>, )
pub fn apply_timer_patterns(&self, body: &mut Vec<Cell>)
pub fn get_alignment_points(&self, body: &Vec<Cell>) -> Vec<PlotPoint>
pub fn get_point_combinations(&self, numbers: Vec<usize>) -> Vec<Point<usize>>
pub fn plot_spiral( &self, origin_pt: &Point<usize>, size: usize, diff: usize, ) -> Vec<PlotPoint>
Auto Trait Implementations§
impl Freeze for QRConfig
impl RefUnwindSafe for QRConfig
impl Send for QRConfig
impl Sync for QRConfig
impl Unpin for QRConfig
impl UnwindSafe for QRConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more