pub enum Encoding {
Utf8,
Utf16Le,
Utf16Be,
Utf32Le,
Utf32Be,
}Expand description
The encoding detected from the input byte stream.
Variants§
Utf8
UTF-8 (default when no BOM or null-byte heuristic matches).
Utf16Le
UTF-16 little-endian (BOM FF FE or null-byte heuristic).
Utf16Be
UTF-16 big-endian (BOM FE FF or null-byte heuristic).
Utf32Le
UTF-32 little-endian (BOM FF FE 00 00).
Utf32Be
UTF-32 big-endian (BOM 00 00 FE FF).
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnsafeUnpin for Encoding
impl UnwindSafe for Encoding
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