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> UnsafeUnpin for Wrapper<T>where
T: UnsafeUnpin,
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
Source§impl<T> SizedTypeProperties for T
impl<T> SizedTypeProperties for T
Source§#[doc(hidden)] const IS_ZST: bool = _
#[doc(hidden)] const IS_ZST: bool = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const LAYOUT: Layout = _
#[doc(hidden)] const LAYOUT: Layout = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)Source§#[doc(hidden)] const MAX_SLICE_LEN: usize = _
#[doc(hidden)] const MAX_SLICE_LEN: usize = _
🔬This is a nightly-only experimental API. (
sized_type_properties
)The largest safe length for a
[Self]
. Read more