Struct wyz::fmt::FmtPointer
source · [−]#[repr(transparent)]pub struct FmtPointer<T: Pointer>(pub T);
Expand description
Forwards a type’s Pointer
formatting implementation to Debug
.
Tuple Fields
0: T
Trait Implementations
sourceimpl<T: Pointer> AsMut<T> for FmtPointer<T>
impl<T: Pointer> AsMut<T> for FmtPointer<T>
sourceimpl<T: Pointer> AsRef<T> for FmtPointer<T>
impl<T: Pointer> AsRef<T> for FmtPointer<T>
sourceimpl<T: Pointer + Binary> Binary for FmtPointer<T>
impl<T: Pointer + Binary> Binary for FmtPointer<T>
sourceimpl<T: Pointer> Debug for FmtPointer<T>
impl<T: Pointer> Debug for FmtPointer<T>
sourceimpl<T: Pointer> Deref for FmtPointer<T>
impl<T: Pointer> Deref for FmtPointer<T>
sourceimpl<T: Pointer> DerefMut for FmtPointer<T>
impl<T: Pointer> DerefMut for FmtPointer<T>
sourceimpl<T: Pointer + Display> Display for FmtPointer<T>
impl<T: Pointer + Display> Display for FmtPointer<T>
sourceimpl<T: Pointer + LowerExp> LowerExp for FmtPointer<T>
impl<T: Pointer + LowerExp> LowerExp for FmtPointer<T>
sourceimpl<T: Pointer + LowerHex> LowerHex for FmtPointer<T>
impl<T: Pointer + LowerHex> LowerHex for FmtPointer<T>
sourceimpl<T: Pointer + Octal> Octal for FmtPointer<T>
impl<T: Pointer + Octal> Octal for FmtPointer<T>
sourceimpl<T: Pointer> Pointer for FmtPointer<T>
impl<T: Pointer> Pointer for FmtPointer<T>
sourceimpl<T: Pointer + UpperExp> UpperExp for FmtPointer<T>
impl<T: Pointer + UpperExp> UpperExp for FmtPointer<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for FmtPointer<T> where
T: RefUnwindSafe,
impl<T> Send for FmtPointer<T> where
T: Send,
impl<T> Sync for FmtPointer<T> where
T: Sync,
impl<T> Unpin for FmtPointer<T> where
T: Unpin,
impl<T> UnwindSafe for FmtPointer<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> FmtForward for T
impl<T> FmtForward for T
sourcefn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self> where
Self: Binary,
Causes self
to use its Binary
implementation when Debug
-formatted.
sourcefn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self> where
Self: Display,
Causes self
to use its Display
implementation when
Debug
-formatted. Read more
sourcefn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self> where
Self: LowerExp,
Causes self
to use its LowerExp
implementation when
Debug
-formatted. Read more
sourcefn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self> where
Self: LowerHex,
Causes self
to use its LowerHex
implementation when
Debug
-formatted. Read more
sourcefn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self> where
Self: Octal,
Causes self
to use its Octal
implementation when Debug
-formatted.
sourcefn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self> where
Self: Pointer,
Causes self
to use its Pointer
implementation when
Debug
-formatted. Read more
sourcefn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self> where
Self: UpperExp,
Causes self
to use its UpperExp
implementation when
Debug
-formatted. Read more
sourcefn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self> where
Self: UpperHex,
Causes self
to use its UpperHex
implementation when
Debug
-formatted. Read more
sourceimpl<T> PipeAsRef for T
impl<T> PipeAsRef for T
sourceimpl<T> PipeBorrow for T
impl<T> PipeBorrow for T
sourceimpl<T> PipeDeref for T
impl<T> PipeDeref for T
sourceimpl<T> PipeRef for T
impl<T> PipeRef for T
sourceimpl<T> Tap for T
impl<T> Tap for T
sourcefn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
R: Sized,
fn tap<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
R: Sized,
Provides immutable access for inspection. Read more
sourcefn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
R: Sized,
fn tap_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&Self) -> R,
R: Sized,
Calls tap
in debug builds, and does nothing in release builds.
sourcefn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
R: Sized,
fn tap_mut<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
R: Sized,
Provides mutable access for modification. Read more
sourcefn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
R: Sized,
fn tap_mut_dbg<F, R>(self, func: F) -> Self where
F: FnOnce(&mut Self) -> R,
R: Sized,
Calls tap_mut
in debug builds, and does nothing in release builds.
sourceimpl<T, U> TapAsRef<U> for T where
U: ?Sized,
impl<T, U> TapAsRef<U> for T where
U: ?Sized,
sourcefn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Provides immutable access to the reference for inspection.
sourcefn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
fn tap_ref_dbg<F, R>(self, func: F) -> Self where
Self: AsRef<T>,
F: FnOnce(&T) -> R,
Calls tap_ref
in debug builds, and does nothing in release builds.
sourcefn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Provides mutable access to the reference for modification.
sourcefn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
fn tap_ref_mut_dbg<F, R>(self, func: F) -> Self where
Self: AsMut<T>,
F: FnOnce(&mut T) -> R,
Calls tap_ref_mut
in debug builds, and does nothing in release builds.
sourceimpl<T, U> TapBorrow<U> for T where
U: ?Sized,
impl<T, U> TapBorrow<U> for T where
U: ?Sized,
sourcefn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
R: Sized,
fn tap_borrow<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
R: Sized,
Provides immutable access to the borrow for inspection. Read more
sourcefn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
R: Sized,
fn tap_borrow_dbg<F, R>(self, func: F) -> Self where
Self: Borrow<T>,
F: FnOnce(&T) -> R,
R: Sized,
Calls tap_borrow
in debug builds, and does nothing in release builds.
sourceimpl<T> TapDeref for T
impl<T> TapDeref for T
sourcefn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&<Self as Deref>::Target) -> R,
fn tap_deref<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&<Self as Deref>::Target) -> R,
Immutably dereferences self
for inspection.
sourcefn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&<Self as Deref>::Target) -> R,
fn tap_deref_dbg<F, R>(self, func: F) -> Self where
Self: Deref,
F: FnOnce(&<Self as Deref>::Target) -> R,
Calls tap_deref
in debug builds, and does nothing in release builds.