pub struct Wrapper<T>(pub T);
🔬This is a nightly-only experimental API. (
generic_assert_internals
#44838)Expand description
Necessary for the implementations of TryCapture*
Tuple Fields§
§0: T
🔬This is a nightly-only experimental API. (
generic_assert_internals
#44838)Trait Implementations§
source§impl<E> TryCaptureGeneric<E, TryCaptureWithoutDebug> for &Wrapper<&E>
impl<E> TryCaptureGeneric<E, TryCaptureWithoutDebug> for &Wrapper<&E>
source§fn try_capture(&self, _: &mut Capture<E, TryCaptureWithoutDebug>)
fn try_capture(&self, _: &mut Capture<E, TryCaptureWithoutDebug>)
🔬This is a nightly-only experimental API. (
generic_assert_internals
#44838)Similar to TryCapturePrintable but generic to any
E
.source§impl<E> TryCapturePrintable<E, TryCaptureWithDebug> for Wrapper<&E>where
E: Printable,
impl<E> TryCapturePrintable<E, TryCaptureWithDebug> for Wrapper<&E>where E: Printable,
source§fn try_capture(&self, to: &mut Capture<E, TryCaptureWithDebug>)
fn try_capture(&self, to: &mut Capture<E, TryCaptureWithDebug>)
🔬This is a nightly-only experimental API. (
generic_assert_internals
#44838)Similar as TryCaptureGeneric but specialized to any
E: Printable
.Auto Trait Implementations§
impl<T> Freeze for Wrapper<T>where T: Freeze,
impl<T> RefUnwindSafe for Wrapper<T>where T: RefUnwindSafe,
impl<T> Send for Wrapper<T>where T: Send,
impl<T> Sync for Wrapper<T>where T: Sync,
impl<T> Unpin for Wrapper<T>where T: Unpin,
impl<T> UnwindSafe for Wrapper<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