escpos_db

Enum Encoding

source
#[non_exhaustive]
pub enum Encoding {
Show 69 variants CP1001, CP1098, CP1125, CP1250, CP1251, CP1252, CP1253, CP1254, CP1255, CP1256, CP1257, CP1258, CP2001, CP3001, CP3002, CP3011, CP3012, CP3021, CP3041, CP3840, CP3841, CP3843, CP3844, CP3845, CP3846, CP3847, CP3848, CP437, CP720, CP737, CP747, CP772, CP774, CP775, CP850, CP851, CP852, CP853, CP855, CP856, CP857, CP858, CP860, CP861, CP862, CP863, CP864, CP865, CP866, CP869, CP874, CP928, CP932, ISO_8859_1, ISO_8859_15, ISO_8859_2, ISO_8859_3, ISO_8859_4, ISO_8859_5, ISO_8859_6, ISO_8859_7, ISO_8859_8, ISO_8859_9, KATAKANA, OXHOO_EUROPEAN, RK1048, TCVN_3_1, TCVN_3_2, UNKNOWN,
}
Expand description

A code page supported by ESC/POS printers.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

CP1001

Unimplemented Star-specific CP1001

§

CP1098

CP1098

§

CP1125

CP1125

§

CP1250

CP1250

§

CP1251

CP1251

§

CP1252

CP1252

§

CP1253

CP1253

§

CP1254

CP1254

§

CP1255

CP1255

§

CP1256

CP1256

§

CP1257

CP1257

§

CP1258

CP1258

§

CP2001

Unimplemented Star-specific CP2001

§

CP3001

Unimplemented Star-specific CP3001

§

CP3002

Unimplemented Star-specific CP3002

§

CP3011

CP3011 Latvian

§

CP3012

CP3012 Cyrillic

§

CP3021

Unimplemented Star-specific CP3021

§

CP3041

Unimplemented Star-specific CP3041

§

CP3840

Unimplemented Star-specific CP3840

§

CP3841

Unimplemented Star-specific CP3841

§

CP3843

Unimplemented Star-specific CP3843

§

CP3844

Unimplemented Star-specific CP3844

§

CP3845

Unimplemented Star-specific CP3845

§

CP3846

Unimplemented Star-specific CP3846

§

CP3847

Unimplemented Star-specific CP3847

§

CP3848

Unimplemented Star-specific CP3848

§

CP437

CP437

§

CP720

CP720

§

CP737

CP737

§

CP747

CP747

§

CP772

CP772

§

CP774

CP774

§

CP775

CP775

§

CP850

CP850

§

CP851

Greek CP851

Not used, due to inconsistencies between implementations.

§

CP852

CP852

§

CP853

CP853

§

CP855

CP855

§

CP856

CP856

§

CP857

CP857

§

CP858

CP858

§

CP860

CP860

§

CP861

CP861

§

CP862

CP862

§

CP863

CP863

§

CP864

CP864

§

CP865

CP865

§

CP866

CP866

§

CP869

CP869

§

CP874

CP874

§

CP928

CP928

§

CP932

CP932

§

ISO_8859_1

ISO_8859-1

§

ISO_8859_15

ISO_8859-15

§

ISO_8859_2

ISO_8859-2

§

ISO_8859_3

ISO_8859-3

§

ISO_8859_4

ISO_8859-4

§

ISO_8859_5

ISO_8859-5

§

ISO_8859_6

ISO_8859-6

§

ISO_8859_7

ISO_8859-7

§

ISO_8859_8

ISO_8859-8

§

ISO_8859_9

ISO_8859-9

§

KATAKANA

Katakana (codepage 1)

§

OXHOO_EUROPEAN

Oxhoo-specific European

§

RK1048

RK1048

§

TCVN_3_1

Vietnamese TCVN-3 1

§

TCVN_3_2

Vietnamese TCVN-3 1

§

UNKNOWN

Unknown

Code page that has not yet been identified.

Implementations§

source§

impl Encoding

source

pub fn data(&self) -> Option<&'static [char; 128]>

This encoding’s 7-bit codepage.

Trait Implementations§

source§

impl Clone for Encoding

source§

fn clone(&self) -> Encoding

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Encoding

source§

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

Formats the value using the given formatter. Read more
source§

impl Copy for Encoding

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> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.