[−][src]Struct pstr::ffi::IOsStr
Immutable Interning OsString
Implementations
impl IOsStr
[src]
pub fn new(s: impl AsRef<OsStr>) -> Self
[src]
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]
s: S,
to_arc: impl FnOnce(S) -> Arc<OsStr>
) -> Self
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]
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.
fn from_str(s: &str) -> Result<Self, Self::Err>
[src]
impl Hash for IOsStr
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Interning for IOsStr
[src]
impl Muterning for IOsStr
[src]
impl Ord for IOsStr
[src]
fn cmp(&self, other: &IOsStr) -> Ordering
[src]
#[must_use]fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]fn clamp(self, min: Self, max: Self) -> Self
[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]
fn partial_cmp(&self, other: &IOsStr) -> Option<Ordering>
[src]
fn lt(&self, other: &IOsStr) -> bool
[src]
fn le(&self, other: &IOsStr) -> bool
[src]
fn gt(&self, other: &IOsStr) -> bool
[src]
fn ge(&self, other: &IOsStr) -> bool
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,