#[non_exhaustive]pub struct DecodedQrCode { /* private fields */ }Expand description
A QR code recovered from an image by a QrDecoder.
#[non_exhaustive]: fields may grow in 1.x (e.g. encoding mode, mask,
position) without a breaking change; construct via DecodedQrCode::new
and read via the accessors.
Implementations§
Source§impl DecodedQrCode
impl DecodedQrCode
Sourcepub fn new(data: Vec<u8>, version: Version, ec_level: EcLevel) -> Self
pub fn new(data: Vec<u8>, version: Version, ec_level: EcLevel) -> Self
Creates a decoded QR code from its recovered fields.
Trait Implementations§
Source§impl Clone for DecodedQrCode
impl Clone for DecodedQrCode
Source§impl Debug for DecodedQrCode
impl Debug for DecodedQrCode
impl Eq for DecodedQrCode
Source§impl PartialEq for DecodedQrCode
impl PartialEq for DecodedQrCode
impl StructuralPartialEq for DecodedQrCode
Auto Trait Implementations§
impl Forget for DecodedQrCode
impl Freeze for DecodedQrCode
impl Move for DecodedQrCode
impl RefUnwindSafe for DecodedQrCode
impl Send for DecodedQrCodewhere
RawVecInner: Send,
impl Sync for DecodedQrCodewhere
RawVecInner: Sync,
impl Unpin for DecodedQrCode
impl UnsafeUnpin for DecodedQrCode
impl UnwindSafe for DecodedQrCodewhere
RawVecInner: UnwindSafe,
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