[go: up one dir, main page]

OsStr

Struct OsStr 

Source
pub struct OsStr { /* private fields */ }
Expand description

Borrowed allocation of an OS-native string.

Trait Implementations§

Source§

impl<'str> AsRef<OsStr> for EitherOsStr<'str>

Source§

fn as_ref(&self) -> &OsStr

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

impl AsRef<OsStr> for OsString

Source§

fn as_ref(&self) -> &OsStr

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

impl Debug for OsStr

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Display for OsStr

Source§

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

Formats the value using the given formatter. Read more
Source§

impl<'str> IntoOsString for &'str OsStr

Source§

fn into_os_string(self) -> Result<OsString, Error>

Converts with possible allocation error.
Source§

impl ToOsStr for OsStr

Source§

fn to_os_str(&self) -> Result<EitherOsStr<'_>, Error>

Converts with possible allocation error.

Auto Trait Implementations§

§

impl Freeze for OsStr

§

impl RefUnwindSafe for OsStr

§

impl Send for OsStr

§

impl !Sized for OsStr

§

impl Sync for OsStr

§

impl Unpin for OsStr

§

impl UnwindSafe for OsStr

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
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more