pub struct Code {
pub corners: [Point; 4],
pub size: i32,
pub cell_bitmap: [u8; 3917],
}Expand description
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: i32The 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:
ⓘ
cell_bitmap[i >> 3] & (1 << (i & 7))
// where i = (y * size) + x.cell_bitmap: [u8; 3917]Implementations§
Trait Implementations§
impl Copy for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnsafeUnpin for Code
impl UnwindSafe for Code
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