Enum libyml::yaml::YamlEncodingT
source · #[non_exhaustive]#[repr(u32)]pub enum YamlEncodingT {
YamlAnyEncoding = 0,
YamlUtf8Encoding = 1,
YamlUtf16leEncoding = 2,
YamlUtf16beEncoding = 3,
}
Expand description
The stream encoding.
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.
YamlAnyEncoding = 0
Let the parser choose the encoding.
YamlUtf8Encoding = 1
The default UTF-8 encoding.
YamlUtf16leEncoding = 2
The UTF-16-LE encoding with BOM.
YamlUtf16beEncoding = 3
The UTF-16-BE encoding with BOM.
Trait Implementations§
source§impl Clone for YamlEncodingT
impl Clone for YamlEncodingT
source§fn clone(&self) -> YamlEncodingT
fn clone(&self) -> YamlEncodingT
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for YamlEncodingT
impl Debug for YamlEncodingT
source§impl Default for YamlEncodingT
impl Default for YamlEncodingT
source§impl Hash for YamlEncodingT
impl Hash for YamlEncodingT
source§impl Ord for YamlEncodingT
impl Ord for YamlEncodingT
source§fn cmp(&self, other: &YamlEncodingT) -> Ordering
fn cmp(&self, other: &YamlEncodingT) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for YamlEncodingT
impl PartialEq for YamlEncodingT
source§impl PartialOrd for YamlEncodingT
impl PartialOrd for YamlEncodingT
impl Copy for YamlEncodingT
impl Eq for YamlEncodingT
impl StructuralPartialEq for YamlEncodingT
Auto Trait Implementations§
impl Freeze for YamlEncodingT
impl RefUnwindSafe for YamlEncodingT
impl Send for YamlEncodingT
impl Sync for YamlEncodingT
impl Unpin for YamlEncodingT
impl UnwindSafe for YamlEncodingT
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)