pub struct ReaderOptions(/* private fields */);

Implementations§

source§

impl ReaderOptions

source

pub fn new() -> Self

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

Trait Implementations§

source§

impl AsRef<ReaderOptions> for ReaderOptions

source§

fn as_ref(&self) -> &ReaderOptions

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Default for ReaderOptions

source§

fn default() -> Self

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

impl Drop for ReaderOptions

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>,

§

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>,

§

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.