pub enum TextEncoding {
Cp866,
Windows1251,
Ascii,
Utf8,
}Expand description
Текстовая кодировка, используемая для байтов дисплея.
Variants§
Cp866
IBM866 / CP866.
Частый выбор для русской кириллицы на Epson/АТОЛ-совместимых дисплеях.
Windows1251
Windows-1251.
Используйте, если руководство дисплея явно указывает Windows-1251 или CP1251.
Ascii
Только ASCII, всё вне ASCII заменяется на ?.
Utf8
UTF-8 без перекодирования.
Подходит только устройствам, которые действительно принимают UTF-8 байты.
Trait Implementations§
Source§impl Clone for TextEncoding
impl Clone for TextEncoding
Source§fn clone(&self) -> TextEncoding
fn clone(&self) -> TextEncoding
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TextEncoding
Source§impl Debug for TextEncoding
impl Debug for TextEncoding
impl Eq for TextEncoding
Source§impl PartialEq for TextEncoding
impl PartialEq for TextEncoding
impl StructuralPartialEq for TextEncoding
Auto Trait Implementations§
impl Freeze for TextEncoding
impl RefUnwindSafe for TextEncoding
impl Send for TextEncoding
impl Sync for TextEncoding
impl Unpin for TextEncoding
impl UnsafeUnpin for TextEncoding
impl UnwindSafe for TextEncoding
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