pub enum DetectedEncoding {
AsciiCompatible,
Utf8Bom,
Utf16LeLike,
Utf16LeBom,
Utf16BeLike,
Utf16BeBom,
}Expand description
Possible outcomes of start-of-document encoding detection.
See detect_encoding.
Variants§
AsciiCompatible
Matches UTF-8 or some other ASCII-compatible encoding.
Utf8Bom
A UTF-8 BOM was seen.
Utf16LeLike
Matches UTF-16 LE (or a compatible 16-bit little-endian encoding).
Utf16LeBom
A UTF-16 little-endian BOM was seen.
Utf16BeLike
Matches UTF-16 BE (or a compatible 16-bit big-endian encoding).
Utf16BeBom
A UTF-16 big-endian BOM was seen.
Implementations§
Trait Implementations§
Source§impl Clone for DetectedEncoding
impl Clone for DetectedEncoding
impl Copy for DetectedEncoding
Source§impl Debug for DetectedEncoding
impl Debug for DetectedEncoding
impl Eq for DetectedEncoding
Source§impl PartialEq for DetectedEncoding
impl PartialEq for DetectedEncoding
impl StructuralPartialEq for DetectedEncoding
Auto Trait Implementations§
impl Freeze for DetectedEncoding
impl RefUnwindSafe for DetectedEncoding
impl Send for DetectedEncoding
impl Sync for DetectedEncoding
impl Unpin for DetectedEncoding
impl UnsafeUnpin for DetectedEncoding
impl UnwindSafe for DetectedEncoding
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