pub struct Quirc {
pub pixels: Vec<Pixel>,
pub w: usize,
pub h: usize,
pub regions: Vec<Region>,
pub capstones: Vec<Capstone>,
pub grids: Vec<Grid>,
}
Fields§
§pixels: Vec<Pixel>
§w: usize
§h: usize
§regions: Vec<Region>
§capstones: Vec<Capstone>
§grids: Vec<Grid>
Implementations§
source§impl Quirc
impl Quirc
sourcepub fn resize(&mut self, width: usize, height: usize)
pub fn resize(&mut self, width: usize, height: usize)
Resize the QR-code recognizer. The size of an image must be specified before codes can be analyzed.
This function returns 0 on success, or -1 if sufficient memory could not be allocated.
pub fn num_regions(&self) -> usize
pub fn num_capstones(&self) -> usize
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Quirc
impl Send for Quirc
impl Sync for Quirc
impl Unpin for Quirc
impl UnwindSafe for Quirc
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