pub enum InputEncoding {
Bytes,
Utf8,
Utf16Be,
Utf16Le,
}Expand description
Input decoding mode for a [PortableFileHandle], mirroring XeTeX’s encoding
modes (xetex.h): Bytes corresponds to RAW. AUTO/ICUMAPPING are not
stored here — AUTO is resolved to a concrete mode at open time (BOM sniff),
and ICU mappings degrade to Bytes.
Variants§
Bytes
Raw bytes, one Unicode scalar per byte (XeTeX RAW).
Utf8
UTF-8 (XeTeX UTF8).
Utf16Be
UTF-16 big-endian (XeTeX UTF16BE).
Utf16Le
UTF-16 little-endian (XeTeX UTF16LE).
Trait Implementations§
Source§impl Clone for InputEncoding
impl Clone for InputEncoding
Source§fn clone(&self) -> InputEncoding
fn clone(&self) -> InputEncoding
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 InputEncoding
Source§impl Debug for InputEncoding
impl Debug for InputEncoding
Source§impl Default for InputEncoding
impl Default for InputEncoding
Source§fn default() -> InputEncoding
fn default() -> InputEncoding
Returns the “default value” for a type. Read more
impl Eq for InputEncoding
Source§impl PartialEq for InputEncoding
impl PartialEq for InputEncoding
Source§fn eq(&self, other: &InputEncoding) -> bool
fn eq(&self, other: &InputEncoding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputEncoding
Auto Trait Implementations§
impl Freeze for InputEncoding
impl RefUnwindSafe for InputEncoding
impl Send for InputEncoding
impl Sync for InputEncoding
impl Unpin for InputEncoding
impl UnsafeUnpin for InputEncoding
impl UnwindSafe for InputEncoding
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