pub struct IsPanicFmt<S: ?Sized, T: ?Sized, K> { /* fields omitted */ }
Expand description
A marker type that proves that S
implements
PanicFmt<This = T, Kind = K>
.
Used by const_panic macros to coerce both standard library and
user-defined types into some type that has a to_panicvals
method.
Infers the S
type parameter with the argument.
Because the only ways to construct IsPanicFmt
use IsPanicFmt<S, S::This, S::Kind>
,
the other type parameters are inferred along with S
.
For coercing &T
to StdWrapper<&T>
.
For coercing &T
(with any amount of stacked references) to &T
.
Performs copy-assignment from source
. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.