Struct Capture
pub struct Capture<E, M> { pub elem: Option<E>, pub(in ::asserting) phantom: PhantomData<M> }
All possible captured assert! elements
Types
E: Element that is going to be displayed.M: Marker used to differentiate [Capture]s in regards to [Debug].
Fields
elem: Option<E>phantom: PhantomData<M>
Implementations
impl<M, T> Capture<M, T>
const fn new() -> Self
Trait Implementations
impl<E> Debug for Capture<E, TryCaptureWithDebug>
where
E: Printable,
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
impl<E> Debug for Capture<E, TryCaptureWithoutDebug>
fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>
Auto Trait Implementations
impl<E, M> Freeze for Capture<E, M>
where
Option<E>: Freeze,
PhantomData<M>: Freeze,
impl<E, M> RefUnwindSafe for Capture<E, M>
where
Option<E>: RefUnwindSafe,
PhantomData<M>: RefUnwindSafe,
impl<E, M> Send for Capture<E, M>
where
Option<E>: Send,
PhantomData<M>: Send,
impl<E, M> Sync for Capture<E, M>
where
Option<E>: Sync,
PhantomData<M>: Sync,
impl<E, M> Unpin for Capture<E, M>
where
Option<E>: Unpin,
PhantomData<M>: Unpin,
impl<E, M> UnsafeUnpin for Capture<E, M>
where
Option<E>: UnsafeUnpin,
PhantomData<M>: UnsafeUnpin,
impl<E, M> UnwindSafe for Capture<E, M>
where
Option<E>: UnwindSafe,
PhantomData<M>: UnwindSafe,
Blanket Implementations
impl<T> Any for Capture<E, M>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Capture<E, M>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Capture<E, M>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Capture<E, M>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Capture<E, M>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Capture<E, M>
impl<T, U> Into<U> for Capture<E, M>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Capture<E, M>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Capture<E, M>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>