Lines Matching refs:unwrap
53 let qr: QrCode = QrCode::encode_text(text, errcorlvl).unwrap(); in do_basic_demo()
62 …de::encode_text("314159265358979323846264338327950288419716939937510", QrCodeEcc::Medium).unwrap(); in do_variety_demo()
66 …::encode_text("DOLLAR-AMOUNT:$39.87 PERCENTAGE:100.00% OPERATIONS:+-*/", QrCodeEcc::High).unwrap(); in do_variety_demo()
70 let qr = QrCode::encode_text("こんにちwa、世界! αβγδ", QrCodeEcc::Quartile).unwrap(); in do_variety_demo()
81 "a White Rabbit with pink eyes ran close by her."), QrCodeEcc::High).unwrap(); in do_variety_demo()
91 let qr = QrCode::encode_text(&[silver0, silver1].concat(), QrCodeEcc::Low).unwrap(); in do_segment_demo()
98 let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap(); in do_segment_demo()
105 let qr = QrCode::encode_text(&[golden0, golden1, golden2].concat(), QrCodeEcc::Low).unwrap(); in do_segment_demo()
113 let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap(); in do_segment_demo()
118 let qr = QrCode::encode_text(madoka, QrCodeEcc::Low).unwrap(); in do_segment_demo()
136 let qr = QrCode::encode_segments(&segs, QrCodeEcc::Low).unwrap(); in do_segment_demo()
145 …advanced(&segs, QrCodeEcc::High, Version::MIN, Version::MAX, None, true).unwrap(); // Automatic m… in do_mask_demo()
147 …, QrCodeEcc::High, Version::MIN, Version::MAX, Some(Mask::new(3)), true).unwrap(); // Force mask 3 in do_mask_demo()
152 …QrCodeEcc::Medium, Version::MIN, Version::MAX, Some(Mask::new(0)), true).unwrap(); // Force mask 0 in do_mask_demo()
154 …QrCodeEcc::Medium, Version::MIN, Version::MAX, Some(Mask::new(1)), true).unwrap(); // Force mask 1 in do_mask_demo()
156 …QrCodeEcc::Medium, Version::MIN, Version::MAX, Some(Mask::new(5)), true).unwrap(); // Force mask 5 in do_mask_demo()
158 …QrCodeEcc::Medium, Version::MIN, Version::MAX, Some(Mask::new(7)), true).unwrap(); // Force mask 7 in do_mask_demo()
174 let dimension = qr.size().checked_add(border.checked_mul(2).unwrap()).unwrap(); in to_svg_string()