pub struct QRCode {
pub options: QRCodeOptions,
pub type_number: i32,
pub module_count: i32,
pub modules: Vec<Vec<Option<bool>>>,
pub data_cache: Option<Vec<i32>>,
pub data_list: Vec<QR8bitByte>,
}Expand description
QRCode 结构
Fields§
§options: QRCodeOptions§type_number: i32§module_count: i32§modules: Vec<Vec<Option<bool>>>§data_cache: Option<Vec<i32>>§data_list: Vec<QR8bitByte>Implementations§
Source§impl QRCode
impl QRCode
pub fn new() -> Self
pub fn with_options(options: QRCodeOptions) -> Self
pub fn add_data(&mut self, data: &str)
pub fn is_dark(&self, row: i32, col: i32) -> bool
pub fn get_module_count(&self) -> i32
pub fn get_modules(&self) -> Option<&Vec<Vec<Option<bool>>>>
pub fn make_code(&mut self, text: &str)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QRCode
impl RefUnwindSafe for QRCode
impl Send for QRCode
impl Sync for QRCode
impl Unpin for QRCode
impl UnsafeUnpin for QRCode
impl UnwindSafe for QRCode
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