#[non_exhaustive]pub enum Encoding {
Utf8,
ShiftJis,
Utf16Le,
Utf16Be,
}Expand description
文書の文字コード
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Utf8
UTF-8。XML 宣言がないか、宣言が UTF-8 のもの
ShiftJis
Shift_JIS(WHATWG の Shift_JIS。Shift_JIS・windows-31j などの名前)
Utf16Le
UTF-16 のリトルエンディアン
Utf16Be
UTF-16 のビッグエンディアン
Trait Implementations§
impl Copy for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Forget for Encoding
impl Freeze for Encoding
impl Move 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