pub enum Bom {
Utf8,
Utf16Be,
Utf16Le,
Utf32Be,
Utf32Le,
}Expand description
Identified BOM kind.
Variants§
Utf8
EF BB BF (UTF-8)
Utf16Be
FE FF (UTF-16 big-endian)
Utf16Le
FF FE (UTF-16 little-endian)
Utf32Be
00 00 FE FF (UTF-32 big-endian)
Utf32Le
FF FE 00 00 (UTF-32 little-endian; check before UTF-16 LE)
Implementations§
Trait Implementations§
impl Copy for Bom
impl Eq for Bom
impl StructuralPartialEq for Bom
Auto Trait Implementations§
impl Freeze for Bom
impl RefUnwindSafe for Bom
impl Send for Bom
impl Sync for Bom
impl Unpin for Bom
impl UnsafeUnpin for Bom
impl UnwindSafe for Bom
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