Struct OsStr
pub struct OsStr { /* private fields */ }
A UTF-8-encoded fixed string
NOTE: To support dynamic values (i.e. OsString), enable the string
feature
Implementations
impl OsStr
fn as_os_str(&self) -> &OsStrGet the raw string as an
std::ffi::OsStrfn to_os_string(&self) -> OsStringGet the raw string as an
OsString
Trait Implementations
impl AsRef<OsStr> for OsStr
fn as_ref(&self) -> &OsStr
impl AsRef<Path> for OsStr
fn as_ref(&self) -> &Path
impl Borrow<OsStr> for OsStr
fn borrow(&self) -> &OsStr
impl Clone for OsStr
fn clone(&self) -> Self
impl Debug for OsStr
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Default for OsStr
fn default() -> Self
impl Deref for OsStr
type Target = OsStr;fn deref(&self) -> &OsStr
impl Eq for OsStr
impl From<&&'static OsStr> for OsStr
fn from(name: &&'static OsStr) -> Self
impl From<&&'static str> for OsStr
fn from(name: &&'static str) -> Self
impl From<&'static OsStr> for OsStr
fn from(name: &'static OsStr) -> Self
impl From<&'static str> for OsStr
fn from(name: &'static str) -> Self
impl From<&OsStr> for OsStr
fn from(id: &OsStr) -> Self
impl From<&Str> for OsStr
fn from(id: &Str) -> Self
impl From<Str> for OsStr
fn from(id: Str) -> Self
impl Hash for OsStr
fn hash<__H: Hasher>(&self, state: &mut __H)
impl Ord for OsStr
fn cmp(&self, other: &Self) -> Ordering
impl PartialEq for OsStr
fn eq(&self, other: &Self) -> bool
impl PartialEq<&OsStr> for OsStr
fn eq(&self, other: &&OsStr) -> bool
impl PartialEq<&str> for OsStr
fn eq(&self, other: &&str) -> bool
impl PartialEq<OsString> for OsStr
fn eq(&self, other: &OsString) -> bool
impl PartialEq<String> for OsStr
fn eq(&self, other: &String) -> bool
impl PartialEq<str> for OsStr
fn eq(&self, other: &str) -> bool
impl PartialOrd for OsStr
fn partial_cmp(&self, other: &Self) -> Option<Ordering>
impl StructuralPartialEq for OsStr
Auto Trait Implementations
impl Freeze for OsStr
impl RefUnwindSafe for OsStr
impl Send for OsStr
impl Sync for OsStr
impl Unpin for OsStr
impl UnsafeUnpin for OsStr
impl UnwindSafe for OsStr
Blanket Implementations
impl<I> IntoResettable<OsStr> for OsStr
where
I: Into<OsStr>,
fn into_resettable(self) -> Resettable<OsStr>
impl<P, T> Receiver for OsStr
where
P: Deref<Target = T> + ?Sized,
T: ?Sized,
type Target = T;
impl<T> Any for OsStr
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for OsStr
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for OsStr
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for OsStr
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for OsStr
fn from(t: T) -> TReturns the argument unchanged.
impl<T> ToOwned for OsStr
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for OsStr
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for OsStr
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for OsStr
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>