Struct Configuration

pub struct Configuration { /* private fields */ }

Describes the static parameters for creating a decoder.

Implementations

impl Configuration

fn new(order: BitOrder, size: u8) -> Self

Create a configuration to decode with the specified bit order and symbol size.

Panics

The size needs to be in the interval 2..=12.

fn with_tiff_size_switch(order: BitOrder, size: u8) -> Self

Create a configuration for a TIFF compatible decoder.

Panics

The size needs to be in the interval 2..=12.

fn build(self) -> Encoder

Create a new decoder with the define configuration.

Trait Implementations

impl Clone for Configuration

fn clone(&self) -> Configuration

impl Debug for Configuration

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Auto Trait Implementations

impl Freeze for Configuration

impl RefUnwindSafe for Configuration

impl Send for Configuration

impl Sync for Configuration

impl Unpin for Configuration

impl UnsafeUnpin for Configuration

impl UnwindSafe for Configuration

Blanket Implementations

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

fn type_id(&self) -> TypeId

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

fn borrow(&self) -> &T

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

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

impl<T> CloneToUninit for Configuration where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Configuration

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Configuration where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

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

fn into(self) -> U

Calls U::from(self).

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

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

type Error = never;
fn try_from(value: U) -> Result<T, never>

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

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