[−][src]Struct quircs::Code
This structure is used to return information about detected QR codes in the input image.
Fields
corners: [Point; 4]
The four corners of the QR-code, from top left, clockwise
size: i32
The number of cells across in the QR-code. The cell bitmap is a bitmask giving the actual values of cells. If the cell at (x, y) is black, then the following bit is set:
ⓘThis example is not tested
cell_bitmap[i >> 3] & (1 << (i & 7))
where i = (y * size) + x.
cell_bitmap: [u8; 3917]
Implementations
impl Code
[src]
pub fn decode(&self) -> Result<Data, DecodeError>
[src]
Decode a QR-code, returning the payload data.
impl Code
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,