Expand description
Tuple Fields
0: Inner
Implementations
sourceimpl<Inner> OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner> OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourceimpl 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
sourceimpl<Inner: Clone> Clone for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: Clone> Clone for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn clone(&self) -> OsStringDisplay<Inner>
fn clone(&self) -> OsStringDisplay<Inner>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Inner: Default> Default for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: Default> Default for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn default() -> OsStringDisplay<Inner>
fn default() -> OsStringDisplay<Inner>
Returns the “default value” for a type. Read more
sourceimpl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
Inner: Deserialize<'de>,
impl<'de, Inner> Deserialize<'de> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
Inner: Deserialize<'de>,
sourcefn 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
sourceimpl<Inner> From<Inner> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner> From<Inner> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn from(original: Inner) -> OsStringDisplay<Inner>
fn from(original: Inner) -> OsStringDisplay<Inner>
Converts to this type from the input type.
sourceimpl<Inner: Ord> Ord for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: Ord> Ord for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn cmp(&self, other: &OsStringDisplay<Inner>) -> Ordering
fn cmp(&self, other: &OsStringDisplay<Inner>) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl<Inner: PartialEq> PartialEq<OsStringDisplay<Inner>> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: PartialEq> PartialEq<OsStringDisplay<Inner>> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &OsStringDisplay<Inner>) -> bool
fn ne(&self, other: &OsStringDisplay<Inner>) -> bool
This method tests for !=
.
sourceimpl<Inner: PartialOrd> PartialOrd<OsStringDisplay<Inner>> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: PartialOrd> PartialOrd<OsStringDisplay<Inner>> for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
sourcefn partial_cmp(&self, other: &OsStringDisplay<Inner>) -> Option<Ordering>
fn partial_cmp(&self, other: &OsStringDisplay<Inner>) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl<Inner> Serialize for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
Inner: Serialize,
impl<Inner> Serialize for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
Inner: Serialize,
impl<Inner: Copy> Copy for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
impl<Inner: Eq> Eq for OsStringDisplay<Inner> where
Inner: AsRef<OsStr> + Debug,
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<X> Pipe for X
impl<X> Pipe for X
sourcefn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
fn pipe<Return, Function>(self, f: Function) -> Return where
Function: FnOnce(Self) -> Return,
Apply f
to self
. Read more
sourcefn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
fn pipe_ref<'a, Return, Function>(&'a self, f: Function) -> Return where
Function: FnOnce(&'a Self) -> Return,
Apply f
to &self
. Read more
sourcefn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
fn pipe_mut<'a, Return, Function>(&'a mut self, f: Function) -> Return where
Function: FnOnce(&'a mut Self) -> Return,
Apply f
to &mut self
. Read more
sourcefn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: AsRef<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_as_ref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
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 more
sourcefn pipe_as_mut<'a, Param, Return, Function>(&'a mut self, f: Function) -> Return where
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) -> Return where
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 more
sourcefn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Deref<Target = Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_deref<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
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 more
sourcefn pipe_deref_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
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
) -> Return where
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 more
sourcefn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
Self: Borrow<Param>,
Param: 'a + ?Sized,
Function: FnOnce(&'a Param) -> Return,
fn pipe_borrow<'a, Param, Return, Function>(&'a self, f: Function) -> Return where
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 more
sourcefn pipe_borrow_mut<'a, Param, Return, Function>(
&'a mut self,
f: Function
) -> Return where
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
) -> Return where
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