Struct const_panic::fmt::IsPanicFmt
source · 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.
Implementations§
source§impl<S: ?Sized, T: ?Sized, K> IsPanicFmt<S, T, K>
impl<S: ?Sized, T: ?Sized, K> IsPanicFmt<S, T, K>
source§impl<S: ?Sized, T: ?Sized> IsPanicFmt<S, T, IsStdType>
impl<S: ?Sized, T: ?Sized> IsPanicFmt<S, T, IsStdType>
sourcepub const fn coerce(self, x: &T) -> StdWrapper<&T>
pub const fn coerce(self, x: &T) -> StdWrapper<&T>
For coercing &T
to StdWrapper<&T>
.