pub struct RStrValue { /* private fields */ }Expand description
The opaque payload of an RStr::Value string.
Implementations§
Source§impl RStrValue
impl RStrValue
Sourcepub fn encoding(&self) -> REncoding
pub fn encoding(&self) -> REncoding
Returns the CHARSXP encoding flag recorded in the serialized data.
Sourcepub fn native_encoding_source(&self) -> &NativeEncodingSource
pub fn native_encoding_source(&self) -> &NativeEncodingSource
Returns the native-encoding provenance used for this value.
Sourcepub fn header_native_encoding(&self) -> Option<&str>
pub fn header_native_encoding(&self) -> Option<&str>
Returns the native encoding name declared by the stream header, if any.
This reports header evidence only; it is not the effective decoding
context and therefore returns None for NativeEncodingSource::AssumedUtf8
and NativeEncodingSource::Unknown.
Trait Implementations§
impl Eq for RStrValue
impl StructuralPartialEq for RStrValue
Auto Trait Implementations§
impl Freeze for RStrValue
impl RefUnwindSafe for RStrValue
impl Send for RStrValue
impl Sync for RStrValue
impl Unpin for RStrValue
impl UnsafeUnpin for RStrValue
impl UnwindSafe for RStrValue
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