pub struct OsStringDisplay<Inner = OsString>(pub Inner)
where
Inner: AsRef<OsStr> + Debug;
Expand description
Tuple Fields§
§0: Inner
Implementations§
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>where
Inner: AsRef<OsStr> + Debug,
impl<Inner> AsMut<Inner> for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug,
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> Clone for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + Clone,
impl<Inner> Clone for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Clone,
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> Default for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + Default,
impl<Inner> Default for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Default,
source§fn default() -> OsStringDisplay<Inner>
fn default() -> OsStringDisplay<Inner>
Returns the “default value” for a type. Read more
source§impl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + Deserialize<'de>,
impl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Deserialize<'de>,
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> From<Inner> for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug,
impl<Inner> From<Inner> for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug,
source§fn from(original: Inner) -> OsStringDisplay<Inner>
fn from(original: Inner) -> OsStringDisplay<Inner>
Converts to this type from the input type.
source§impl<Inner> Ord for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + Ord,
impl<Inner> Ord for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Ord,
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<OsStringDisplay<Inner>> for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + PartialEq,
impl<Inner> PartialEq<OsStringDisplay<Inner>> for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + PartialEq,
source§fn eq(&self, other: &OsStringDisplay<Inner>) -> bool
fn eq(&self, other: &OsStringDisplay<Inner>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<Inner> PartialOrd<OsStringDisplay<Inner>> for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + PartialOrd,
impl<Inner> PartialOrd<OsStringDisplay<Inner>> for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + PartialOrd,
source§fn partial_cmp(&self, other: &OsStringDisplay<Inner>) -> Option<Ordering>
fn partial_cmp(&self, other: &OsStringDisplay<Inner>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl<Inner> Serialize for OsStringDisplay<Inner>where
Inner: AsRef<OsStr> + Debug + Serialize,
impl<Inner> Serialize for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Serialize,
impl<Inner> Copy for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Copy,
impl<Inner> Eq for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug + Eq,
impl<Inner> StructuralEq for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug,
impl<Inner> StructuralPartialEq for OsStringDisplay<Inner>where Inner: AsRef<OsStr> + Debug,
Auto Trait Implementations§
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§
§impl<T> FromFd for Twhere
T: From<OwnedFd>,
impl<T> FromFd for Twhere T: From<OwnedFd>,
§impl<T> FromFilelike for Twhere
T: From<OwnedFd>,
impl<T> FromFilelike for Twhere T: From<OwnedFd>,
§fn from_filelike(owned: OwnedFd) -> T
fn from_filelike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given filelike object. Read more§fn from_into_filelike<Owned>(owned: Owned) -> Twhere
Owned: IntoFilelike,
fn from_into_filelike<Owned>(owned: Owned) -> Twhere Owned: IntoFilelike,
Constructs a new instance of
Self
from the given filelike object
converted from into_owned
. Read more§impl<T> FromSocketlike for Twhere
T: From<OwnedFd>,
impl<T> FromSocketlike for Twhere T: From<OwnedFd>,
§fn from_socketlike(owned: OwnedFd) -> T
fn from_socketlike(owned: OwnedFd) -> T
Constructs a new instance of
Self
from the given socketlike object.§fn from_into_socketlike<Owned>(owned: Owned) -> Twhere
Owned: IntoSocketlike,
fn from_into_socketlike<Owned>(owned: Owned) -> Twhere Owned: IntoSocketlike,
Constructs a new instance of
Self
from the given socketlike object
converted from into_owned
.source§impl<X> Pipe for X
impl<X> Pipe for X
source§fn pipe<Return, Function>(self, f: Function) -> Returnwhere
Self: Sized,
Function: FnOnce(Self) -> Return,
fn pipe<Return, Function>(self, f: Function) -> Returnwhere Self: Sized, Function: FnOnce(Self) -> Return,
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) -> Returnwhere
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: AsRef<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> 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) -> Returnwhere
Self: AsMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Returnwhere Self: AsMut<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 AsMut<Param>
. Read moresource§fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: Deref<Target = Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> 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) -> Returnwhere
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Returnwhere Self: Borrow<Param>, Param: 'a + ?Sized, Function: FnOnce(&'a Param) -> 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
) -> Returnwhere
Self: BorrowMut<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a mut Param) -> Return,
fn pipe_borrow_mut<'a, Param, Return, Function>( &'a mut self, f: Function ) -> Returnwhere Self: BorrowMut<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 BorrowMut<Param>
. Read more