#[repr(u8)]pub enum Encoding {
Utf8 = 1,
Utf16Le = 2,
Utf16Be = 3,
}Expand description
Stream encoding.
Variants§
Implementations§
Source§impl Encoding
impl Encoding
Sourcepub fn from_raw(raw: yaml_encoding_t) -> Option<Self>
pub fn from_raw(raw: yaml_encoding_t) -> Option<Self>
Convert from yaml_encoding_t; YAML_ANY_ENCODING becomes None.
Sourcepub fn into_raw(self) -> yaml_encoding_t
pub fn into_raw(self) -> yaml_encoding_t
Convert to yaml_encoding_t.
Sourcepub fn option_into_raw(value: Option<Self>) -> yaml_encoding_t
pub fn option_into_raw(value: Option<Self>) -> yaml_encoding_t
Convert to yaml_encoding_t; None becomes YAML_ANY_ENCODING.
Trait Implementations§
Source§impl Ord for Encoding
impl Ord for Encoding
Source§impl PartialOrd for Encoding
impl PartialOrd for Encoding
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 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