pub struct PointerFmt<Fmt>(pub Fmt)
where
Fmt: Fn(&mut Formatter<'_>) -> Result;
Expand description
Tuple Fields§
§0: Fmt
Trait Implementations§
Source§impl<Fmt> Clone for PointerFmt<Fmt>
impl<Fmt> Clone for PointerFmt<Fmt>
Source§fn clone(&self) -> PointerFmt<Fmt>
fn clone(&self) -> PointerFmt<Fmt>
Returns a duplicate 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<Fmt> Default for PointerFmt<Fmt>
impl<Fmt> Default for PointerFmt<Fmt>
Source§fn default() -> PointerFmt<Fmt>
fn default() -> PointerFmt<Fmt>
Returns the “default value” for a type. Read more
Source§impl<Fmt: Fn(&mut Formatter<'_>) -> Result> From<Fmt> for PointerFmt<Fmt>
let _: fn_formats::PointerFmt<_> = (|f: &mut core::fmt::Formatter| Ok(())).into();
impl<Fmt: Fn(&mut Formatter<'_>) -> Result> From<Fmt> for PointerFmt<Fmt>
let _: fn_formats::PointerFmt<_> = (|f: &mut core::fmt::Formatter| Ok(())).into();
Source§impl<Fmt> Hash for PointerFmt<Fmt>
impl<Fmt> Hash for PointerFmt<Fmt>
Source§impl<Fmt> Ord for PointerFmt<Fmt>
impl<Fmt> Ord for PointerFmt<Fmt>
Source§fn cmp(&self, other: &PointerFmt<Fmt>) -> Ordering
fn cmp(&self, other: &PointerFmt<Fmt>) -> 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<Fmt> PartialEq for PointerFmt<Fmt>
impl<Fmt> PartialEq for PointerFmt<Fmt>
Source§impl<Fmt> PartialOrd for PointerFmt<Fmt>
impl<Fmt> PartialOrd for PointerFmt<Fmt>
impl<Fmt> Copy for PointerFmt<Fmt>
impl<Fmt> Eq for PointerFmt<Fmt>
impl<Fmt> StructuralPartialEq for PointerFmt<Fmt>
Auto Trait Implementations§
impl<Fmt> Freeze for PointerFmt<Fmt>where
Fmt: Freeze,
impl<Fmt> RefUnwindSafe for PointerFmt<Fmt>where
Fmt: RefUnwindSafe,
impl<Fmt> Send for PointerFmt<Fmt>where
Fmt: Send,
impl<Fmt> Sync for PointerFmt<Fmt>where
Fmt: Sync,
impl<Fmt> Unpin for PointerFmt<Fmt>where
Fmt: Unpin,
impl<Fmt> UnwindSafe for PointerFmt<Fmt>where
Fmt: 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