Struct BarcodeReader

Source
pub struct BarcodeReader(/* private fields */);

Implementations§

Source§

impl BarcodeReader

Source

pub fn new() -> Self

Source§

impl BarcodeReader

Source

pub fn try_harder(self, v: impl Into<bool>) -> Self

Source

pub fn set_try_harder(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_try_harder(&self) -> bool

Source

pub fn try_rotate(self, v: impl Into<bool>) -> Self

Source

pub fn set_try_rotate(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_try_rotate(&self) -> bool

Source

pub fn try_invert(self, v: impl Into<bool>) -> Self

Source

pub fn set_try_invert(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_try_invert(&self) -> bool

Source

pub fn try_downscale(self, v: impl Into<bool>) -> Self

Source

pub fn set_try_downscale(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_try_downscale(&self) -> bool

Source

pub fn is_pure(self, v: impl Into<bool>) -> Self

Source

pub fn set_is_pure(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_is_pure(&self) -> bool

Source

pub fn return_errors(self, v: impl Into<bool>) -> Self

Source

pub fn set_return_errors(&mut self, v: impl Into<bool>) -> &mut Self

Source

pub fn get_return_errors(&self) -> bool

Source

pub fn formats(self, v: impl Into<BarcodeFormats>) -> Self

Source

pub fn set_formats(&mut self, v: impl Into<BarcodeFormats>) -> &mut Self

Source

pub fn get_formats(&self) -> BarcodeFormats

Source

pub fn text_mode(self, v: impl Into<TextMode>) -> Self

Source

pub fn set_text_mode(&mut self, v: impl Into<TextMode>) -> &mut Self

Source

pub fn get_text_mode(&self) -> TextMode

Source

pub fn binarizer(self, v: impl Into<Binarizer>) -> Self

Source

pub fn set_binarizer(&mut self, v: impl Into<Binarizer>) -> &mut Self

Source

pub fn get_binarizer(&self) -> Binarizer

Source

pub fn ean_add_on_symbol(self, v: impl Into<EanAddOnSymbol>) -> Self

Source

pub fn set_ean_add_on_symbol( &mut self, v: impl Into<EanAddOnSymbol>, ) -> &mut Self

Source

pub fn get_ean_add_on_symbol(&self) -> EanAddOnSymbol

Source

pub fn max_number_of_symbols(self, v: impl Into<i32>) -> Self

Source

pub fn set_max_number_of_symbols(&mut self, v: impl Into<i32>) -> &mut Self

Source

pub fn get_max_number_of_symbols(&self) -> i32

Source

pub fn min_line_count(self, v: impl Into<i32>) -> Self

Source

pub fn set_min_line_count(&mut self, v: impl Into<i32>) -> &mut Self

Source

pub fn get_min_line_count(&self) -> i32

Source

pub fn from<'a, IV>(&self, image: IV) -> Result<Vec<Barcode>, Error>
where IV: TryInto<ImageView<'a>>, IV::Error: Into<Error>,

Trait Implementations§

Source§

impl Default for BarcodeReader

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for BarcodeReader

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.