pub struct Info { /* private fields */ }Expand description
Metadata about a constructed QrCode, returned by QrCode::info.
Fields that require retaining the input data or the chosen mask (e.g.
encoding_modes, mask_pattern, remaining_capacity) are intentionally
omitted to keep QrCode zero-overhead; they may be added in a later version.
Implementations§
Source§impl Info
impl Info
Sourcepub const fn module_count(&self) -> usize
pub const fn module_count(&self) -> usize
Total number of modules (width * width).
Sourcepub const fn max_allowed_errors(&self) -> usize
pub const fn max_allowed_errors(&self) -> usize
Maximum number of erroneous modules that can still be recovered.
Sourcepub const fn data_capacity_bytes(&self) -> usize
pub const fn data_capacity_bytes(&self) -> usize
Data capacity of this symbol in bytes.
Trait Implementations§
impl Copy for Info
impl Eq for Info
impl StructuralPartialEq for Info
Auto Trait Implementations§
impl Freeze for Info
impl RefUnwindSafe for Info
impl Send for Info
impl Sync for Info
impl Unpin for Info
impl UnsafeUnpin for Info
impl UnwindSafe for Info
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