pub struct Cap<T>(pub T);Expand description
Capture wrapper for logf! args. Inherent impls (numerics, bools) outrank the CapDisplay
blanket at method resolution, so typed capture is automatic and everything else degrades to
text — the autoref-free inherent-priority specialization photon proved out.
Tuple Fields§
§0: TImplementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Cap<T>where
T: Freeze,
impl<T> RefUnwindSafe for Cap<T>where
T: RefUnwindSafe,
impl<T> Send for Cap<T>where
T: Send,
impl<T> Sync for Cap<T>where
T: Sync,
impl<T> Unpin for Cap<T>where
T: Unpin,
impl<T> UnsafeUnpin for Cap<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Cap<T>where
T: 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