pub struct OsStringDisplay<Inner = OsString>(pub Inner)
where
Inner: AsRef<OsStr> + Debug;
Expand description
Tuple Fields§
§0: Inner
Implementations§
Source§impl<Inner> OsStringDisplay<Inner>
impl<Inner> OsStringDisplay<Inner>
Source§impl OsStringDisplay
impl OsStringDisplay
Sourcepub fn os_string_from(source: impl Into<OsString>) -> Self
pub fn os_string_from(source: impl Into<OsString>) -> Self
Create an OsStringDisplay
of OsString
.
Trait Implementations§
Source§impl<Inner> AsMut<Inner> for OsStringDisplay<Inner>
impl<Inner> AsMut<Inner> for OsStringDisplay<Inner>
Source§fn as_mut(&mut self) -> &mut Inner
fn as_mut(&mut self) -> &mut Inner
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl<Inner> AsRef<Inner> for OsStringDisplay<Inner>
impl<Inner> AsRef<Inner> for OsStringDisplay<Inner>
Source§impl<Inner> AsRef<OsStr> for OsStringDisplay<Inner>
impl<Inner> AsRef<OsStr> for OsStringDisplay<Inner>
Source§impl<Inner> Clone for OsStringDisplay<Inner>
impl<Inner> Clone for OsStringDisplay<Inner>
Source§fn clone(&self) -> OsStringDisplay<Inner>
fn clone(&self) -> OsStringDisplay<Inner>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<Inner> Debug for OsStringDisplay<Inner>
impl<Inner> Debug for OsStringDisplay<Inner>
Source§impl<Inner> Default for OsStringDisplay<Inner>
impl<Inner> Default for OsStringDisplay<Inner>
Source§fn default() -> OsStringDisplay<Inner>
fn default() -> OsStringDisplay<Inner>
Returns the “default value” for a type. Read more
Source§impl<Inner> Deref for OsStringDisplay<Inner>
impl<Inner> Deref for OsStringDisplay<Inner>
Source§impl<Inner> DerefMut for OsStringDisplay<Inner>
impl<Inner> DerefMut for OsStringDisplay<Inner>
Source§impl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner>
impl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<Inner> Display for OsStringDisplay<Inner>
impl<Inner> Display for OsStringDisplay<Inner>
Source§impl<Inner> From<Inner> for OsStringDisplay<Inner>
impl<Inner> From<Inner> for OsStringDisplay<Inner>
Source§impl<Inner> FromStr for OsStringDisplay<Inner>
impl<Inner> FromStr for OsStringDisplay<Inner>
Source§impl<Inner> Ord for OsStringDisplay<Inner>
impl<Inner> Ord for OsStringDisplay<Inner>
Source§fn cmp(&self, other: &OsStringDisplay<Inner>) -> Ordering
fn cmp(&self, other: &OsStringDisplay<Inner>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<Inner> PartialEq for OsStringDisplay<Inner>
impl<Inner> PartialEq for OsStringDisplay<Inner>
Source§impl<Inner> PartialOrd for OsStringDisplay<Inner>
impl<Inner> PartialOrd for OsStringDisplay<Inner>
Source§impl<Inner> Serialize for OsStringDisplay<Inner>
impl<Inner> Serialize for OsStringDisplay<Inner>
impl<Inner> Copy for OsStringDisplay<Inner>
impl<Inner> Eq for OsStringDisplay<Inner>
impl<Inner> StructuralPartialEq for OsStringDisplay<Inner>
Auto Trait Implementations§
impl<Inner> Freeze for OsStringDisplay<Inner>where
Inner: Freeze,
impl<Inner> RefUnwindSafe for OsStringDisplay<Inner>where
Inner: RefUnwindSafe,
impl<Inner> Send for OsStringDisplay<Inner>where
Inner: Send,
impl<Inner> Sync for OsStringDisplay<Inner>where
Inner: Sync,
impl<Inner> Unpin for OsStringDisplay<Inner>where
Inner: Unpin,
impl<Inner> UnwindSafe for OsStringDisplay<Inner>where
Inner: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<X> Pipe for X
impl<X> Pipe for X
Source§fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Returnwhere
Function: FnOnce(&'a Self) -> Return,
Source§fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Returnwhere
Function: FnOnce(&'a mut Self) -> Return,
Source§fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait AsRef<Param>
. Read moreSource§fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait AsMut<Param>
. Read moreSource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Deref<Target = Param>
. Read moreSource§fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Returnwhere
Self: DerefMut<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait [DerefMut<Target = Param>
]. Read moreSource§fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return
Apply
f
to &self
where f
takes a single parameter of type Param
and Self
implements trait Borrow<Param>
. Read moreSource§fn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function,
) -> Return
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function, ) -> Return
Apply
f
to &mut self
where f
takes a single parameter of type Param
and Self
implements trait BorrowMut<Param>
. Read more