pub struct NonUnicodeOsStr(/* private fields */);
Expand description

A container for platform strings containing no unicode characters.

Instances can only be constructed using Utf8Chunks.

Implementations§

source§

impl NonUnicodeOsStr

source

pub fn as_os_str(&self) -> &OsStr

Converts this representation back to a platform-native string, without copying or encoding conversion.

Trait Implementations§

source§

impl AsRef<OsStr> for NonUnicodeOsStr

source§

fn as_ref(&self) -> &OsStr

Converts this type into a shared reference of the (usually inferred) input type.
source§

impl Debug for NonUnicodeOsStr

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more