[][src]Struct pstr::ffi::IOsStr

pub struct IOsStr(_);

Immutable Interning OsString

Implementations

impl IOsStr[src]

pub fn new(s: impl AsRef<OsStr>) -> Self[src]

Create a IOsStr from str slice

Example

let s = IOsStr::new("hello world");

pub fn from_os_string(s: OsString) -> Self[src]

Create a IOsStr from OsString

pub fn from_boxed(s: Box<OsStr>) -> Self[src]

Create a IOsStr from Box<OsStr>

pub fn from_arc(s: Arc<OsStr>) -> Self[src]

Create a IOsStr from Arc<OsStr>

pub fn from_rc(s: Rc<OsStr>) -> Self[src]

Create a IOsStr from Rc<OsStr>

pub fn from_mow(s: MowOsStr) -> Self[src]

Create a IOsStr from MowOsStr

pub fn from_to_arc<S: AsRef<OsStr>>(
    s: S,
    to_arc: impl FnOnce(S) -> Arc<OsStr>
) -> Self
[src]

Create a IOsStr from custom fn

impl IOsStr[src]

pub fn as_os_str(&self) -> &OsStr[src]

Converts to an OsStr slice.

pub fn into_boxed_os_str(&self) -> Box<OsStr>[src]

Converts to an Box<OsStr>.

pub fn into_mut(&self) -> MowOsStr[src]

Convert to MowStr

Trait Implementations

impl AsRef<OsStr> for IOsStr[src]

impl AsRef<Path> for IOsStr[src]

impl Borrow<OsStr> for IOsStr[src]

impl Clone for IOsStr[src]

impl Debug for IOsStr[src]

impl Deref for IOsStr[src]

type Target = OsStr

The resulting type after dereferencing.

impl Eq for IOsStr[src]

impl<'_> From<&'_ OsStr> for IOsStr[src]

impl<'_> From<&'_ OsString> for IOsStr[src]

impl<'_> From<&'_ String> for IOsStr[src]

impl<'_> From<&'_ mut str> for IOsStr[src]

impl<'_> From<&'_ str> for IOsStr[src]

impl From<Arc<OsStr>> for IOsStr[src]

impl From<Box<OsStr>> for IOsStr[src]

impl From<IOsStr> for Box<OsStr>[src]

impl From<IOsStr> for Arc<OsStr>[src]

impl From<IOsStr> for Rc<OsStr>[src]

impl From<IOsStr> for OsString[src]

impl From<IOsStr> for PathBuf[src]

impl From<IOsStr> for MowOsStr[src]

impl From<MowOsStr> for IOsStr[src]

impl From<OsString> for IOsStr[src]

impl From<PathBuf> for IOsStr[src]

impl From<Rc<OsStr>> for IOsStr[src]

impl From<String> for IOsStr[src]

impl From<char> for IOsStr[src]

impl FromStr for IOsStr[src]

type Err = Infallible

The associated error which can be returned from parsing.

impl Hash for IOsStr[src]

impl Interning for IOsStr[src]

type Outern = IOsStr

impl Muterning for IOsStr[src]

type Outern = MowOsStr

impl Ord for IOsStr[src]

impl<'_> PartialEq<&'_ OsStr> for IOsStr[src]

impl<'_> PartialEq<&'_ str> for IOsStr[src]

impl PartialEq<IOsStr> for IOsStr[src]

impl PartialEq<OsStr> for IOsStr[src]

impl PartialEq<OsString> for IOsStr[src]

impl PartialEq<String> for IOsStr[src]

impl PartialEq<str> for IOsStr[src]

impl PartialOrd<IOsStr> for IOsStr[src]

impl StructuralEq for IOsStr[src]

impl StructuralPartialEq for IOsStr[src]

Auto Trait Implementations

impl RefUnwindSafe for IOsStr

impl Send for IOsStr

impl Sync for IOsStr

impl Unpin for IOsStr

impl UnwindSafe for IOsStr

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.