#[non_exhaustive]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
Source§impl<'de> Deserialize<'de> for Info
impl<'de> Deserialize<'de> for Info
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.