Struct OsStr

struct OsStr { ... }

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: &Self) -> &OsStr

Get the raw string as an std::ffi::OsStr

fn to_os_string(self: &Self) -> OsString

Get the raw string as an OsString

impl AsRef for OsStr

fn as_ref(self: &Self) -> &OsStr

impl AsRef for OsStr

fn as_ref(self: &Self) -> &Path

impl Borrow for OsStr

fn borrow(self: &Self) -> &OsStr

impl Clone for OsStr

fn clone(self: &Self) -> OsStr

impl Debug for OsStr

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

impl Default for OsStr

fn default() -> OsStr

impl Deref for OsStr

fn deref(self: &Self) -> &OsStr

impl Eq for OsStr

impl Freeze for OsStr

impl From for OsStr

fn from(name: &'static OsStr) -> Self

impl From for OsStr

fn from(name: &&'static str) -> Self

impl From for OsStr

fn from(id: &Str) -> Self

impl From for OsStr

fn from(name: &'static str) -> Self

impl From for OsStr

fn from(id: Str) -> Self

impl From for OsStr

fn from(name: &&'static OsStr) -> Self

impl From for OsStr

fn from(id: &OsStr) -> Self

impl Hash for OsStr

fn hash<__H: $crate::hash::Hasher>(self: &Self, state: &mut __H)

impl Ord for OsStr

fn cmp(self: &Self, other: &OsStr) -> Ordering

impl PartialEq for OsStr

fn eq(self: &Self, other: &OsStr) -> bool

impl PartialEq for OsStr

fn eq(self: &Self, other: &OsString) -> bool

impl PartialEq for OsStr

fn eq(self: &Self, other: &&OsStr) -> bool

impl PartialEq for OsStr

fn eq(self: &Self, other: &str) -> bool

impl PartialEq for OsStr

fn eq(self: &Self, other: &String) -> bool

impl PartialEq for OsStr

fn eq(self: &Self, other: &&str) -> bool

impl PartialOrd for OsStr

fn partial_cmp(self: &Self, other: &OsStr) -> Option<Ordering>

impl RefUnwindSafe for OsStr

impl Send for OsStr

impl StructuralPartialEq for OsStr

impl Sync for OsStr

impl Unpin for OsStr

impl UnsafeUnpin for OsStr

impl UnwindSafe for OsStr

impl<I> IntoResettable for OsStr

fn into_resettable(self: Self) -> Resettable<OsStr>

impl<P, T> Receiver for OsStr

impl<T> Any for OsStr

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for OsStr

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for OsStr

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

impl<T> CloneToUninit for OsStr

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for OsStr

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for OsStr

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for OsStr

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for OsStr

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for OsStr

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>