#[non_exhaustive]pub enum NativeEncodingSource {
Header(Arc<str>),
AssumedUtf8,
Unknown,
}Expand description
The source of native-encoding context used to interpret an R string.
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.
Header(Arc<str>)
The stream header declared this native encoding name (format 3 only).
AssumedUtf8
The header carried no native encoding and the caller opted into
crate::NativeEncodingPolicy::AssumeUtf8.
Unknown
The header carried no native encoding and the caller made no assumption.
Trait Implementations§
Source§impl Clone for NativeEncodingSource
impl Clone for NativeEncodingSource
Source§impl Debug for NativeEncodingSource
impl Debug for NativeEncodingSource
impl Eq for NativeEncodingSource
Source§impl PartialEq for NativeEncodingSource
impl PartialEq for NativeEncodingSource
impl StructuralPartialEq for NativeEncodingSource
Auto Trait Implementations§
impl Freeze for NativeEncodingSource
impl RefUnwindSafe for NativeEncodingSource
impl Send for NativeEncodingSource
impl Sync for NativeEncodingSource
impl Unpin for NativeEncodingSource
impl UnsafeUnpin for NativeEncodingSource
impl UnwindSafe for NativeEncodingSource
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