Struct const_panic::StdWrapper
source · [−]#[repr(transparent)]pub struct StdWrapper<T>(pub T);
Expand description
A wrapper type used to define methods for std types.
Std types are coerced to this type through the approach used in the
coerce_fmt
macro.
Example
Formatting std types with this type’s to_panicvals
methods,
without using macros.
use const_panic::{ArrayString, FmtArg, StdWrapper};
assert_eq!(
ArrayString::<99>::from_panicvals(
&StdWrapper("hello").to_panicvals(FmtArg::DEBUG)
).unwrap(),
r#""hello""#
);
assert_eq!(
ArrayString::<99>::from_panicvals(
&StdWrapper(&[3u8, 5, 8]).to_panicvals(FmtArg::ALT_DEBUG)
).unwrap(),
"[\n 3,\n 5,\n 8,\n]"
);
Tuple Fields
0: T
Implementations
sourceimpl<'s> StdWrapper<&'s [u8]>
impl<'s> StdWrapper<&'s [u8]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [u8; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [u8; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [u16]>
impl<'s> StdWrapper<&'s [u16]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [u16; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [u16; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [u32]>
impl<'s> StdWrapper<&'s [u32]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [u32; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [u32; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [u64]>
impl<'s> StdWrapper<&'s [u64]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [u64; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [u64; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [u128]>
impl<'s> StdWrapper<&'s [u128]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [u128; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [u128; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [usize]>
impl<'s> StdWrapper<&'s [usize]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [usize; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [usize; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [i8]>
impl<'s> StdWrapper<&'s [i8]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [i8; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [i8; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [i16]>
impl<'s> StdWrapper<&'s [i16]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [i16; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [i16; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [i32]>
impl<'s> StdWrapper<&'s [i32]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [i32; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [i32; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [i64]>
impl<'s> StdWrapper<&'s [i64]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [i64; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [i64; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [i128]>
impl<'s> StdWrapper<&'s [i128]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [i128; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [i128; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [isize]>
impl<'s> StdWrapper<&'s [isize]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [isize; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [isize; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [bool]>
impl<'s> StdWrapper<&'s [bool]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [bool; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [bool; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s [&'s str]>
impl<'s> StdWrapper<&'s [&'s str]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the slice to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the slice to a PanicVal
.
sourceimpl<'s, const LEN: usize> StdWrapper<&'s [&'s str; LEN]>
impl<'s, const LEN: usize> StdWrapper<&'s [&'s str; LEN]>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
This is supported on crate feature non_basic
only.
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]
non_basic
only.Converts the array to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
This is supported on crate feature non_basic
only.
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>
non_basic
only.Converts the array to a PanicVal
.
sourceimpl StdWrapper<&u8>
impl StdWrapper<&u8>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this u8
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this u8
to a PanicVal
.
sourceimpl StdWrapper<&u16>
impl StdWrapper<&u16>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this u16
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this u16
to a PanicVal
.
sourceimpl StdWrapper<&u32>
impl StdWrapper<&u32>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this u32
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this u32
to a PanicVal
.
sourceimpl StdWrapper<&u64>
impl StdWrapper<&u64>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this u64
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this u64
to a PanicVal
.
sourceimpl StdWrapper<&u128>
impl StdWrapper<&u128>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this u128
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this u128
to a PanicVal
.
sourceimpl StdWrapper<&usize>
impl StdWrapper<&usize>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this usize
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this usize
to a PanicVal
.
sourceimpl StdWrapper<&i8>
impl StdWrapper<&i8>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this i8
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this i8
to a PanicVal
.
sourceimpl StdWrapper<&i16>
impl StdWrapper<&i16>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this i16
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this i16
to a PanicVal
.
sourceimpl StdWrapper<&i32>
impl StdWrapper<&i32>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this i32
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this i32
to a PanicVal
.
sourceimpl StdWrapper<&i64>
impl StdWrapper<&i64>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this i64
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this i64
to a PanicVal
.
sourceimpl StdWrapper<&i128>
impl StdWrapper<&i128>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this i128
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this i128
to a PanicVal
.
sourceimpl StdWrapper<&isize>
impl StdWrapper<&isize>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Converts this isize
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Converts this isize
to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s bool>
impl<'s> StdWrapper<&'s bool>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]
Formats this bool
into a single-PanicVal
array
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>
Formats this bool
into a PanicVal
sourceimpl<'a> StdWrapper<&'a str>
impl<'a> StdWrapper<&'a str>
sourcepub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'a>; 1]
pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'a>; 1]
Formats this &str
into a single-PanicVal
array
sourcepub const fn to_panicval(self, f: FmtArg) -> PanicVal<'a>
pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'a>
Formats this &str
into a PanicVal
sourceimpl<'s, 'a> StdWrapper<&'s [PanicVal<'a>]>
impl<'s, 'a> StdWrapper<&'s [PanicVal<'a>]>
sourceimpl<'a, 'b> StdWrapper<&'a &'b [PanicVal<'b>]>
impl<'a, 'b> StdWrapper<&'a &'b [PanicVal<'b>]>
sourcepub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
Coerces a &&[PanicVal<'_>]
into a &[PanicVal<'_>]
sourceimpl<'a, 'b, const N: usize> StdWrapper<&'a &'b [PanicVal<'b>; N]>
impl<'a, 'b, const N: usize> StdWrapper<&'a &'b [PanicVal<'b>; N]>
sourcepub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
Coerces a &&[PanicVal<'_>; N]
into a &[PanicVal<'_>]
sourceimpl<'b, const N: usize> StdWrapper<&'b [PanicVal<'b>; N]>
impl<'b, const N: usize> StdWrapper<&'b [PanicVal<'b>; N]>
sourcepub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]
Coerces a &[PanicVal<'_>; N]
into a &[PanicVal<'_>]
sourceimpl<'s> StdWrapper<&'s Option<bool>>
impl<'s> StdWrapper<&'s Option<bool>>
sourceimpl<'s> StdWrapper<&'s Option<u8>>
impl<'s> StdWrapper<&'s Option<u8>>
sourceimpl<'s> StdWrapper<&'s Option<u16>>
impl<'s> StdWrapper<&'s Option<u16>>
sourceimpl<'s> StdWrapper<&'s Option<u32>>
impl<'s> StdWrapper<&'s Option<u32>>
sourceimpl<'s> StdWrapper<&'s Option<u64>>
impl<'s> StdWrapper<&'s Option<u64>>
sourceimpl<'s> StdWrapper<&'s Option<u128>>
impl<'s> StdWrapper<&'s Option<u128>>
sourceimpl<'s> StdWrapper<&'s Option<i8>>
impl<'s> StdWrapper<&'s Option<i8>>
sourceimpl<'s> StdWrapper<&'s Option<i16>>
impl<'s> StdWrapper<&'s Option<i16>>
sourceimpl<'s> StdWrapper<&'s Option<i32>>
impl<'s> StdWrapper<&'s Option<i32>>
sourceimpl<'s> StdWrapper<&'s Option<i64>>
impl<'s> StdWrapper<&'s Option<i64>>
sourceimpl<'s> StdWrapper<&'s Option<i128>>
impl<'s> StdWrapper<&'s Option<i128>>
sourceimpl<'s> StdWrapper<&'s Option<isize>>
impl<'s> StdWrapper<&'s Option<isize>>
sourceimpl<'s> StdWrapper<&'s Option<usize>>
impl<'s> StdWrapper<&'s Option<usize>>
sourceimpl<'s> StdWrapper<&'s Option<&'s str>>
impl<'s> StdWrapper<&'s Option<&'s str>>
sourceimpl StdWrapper<&NonZeroU8>
impl StdWrapper<&NonZeroU8>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroU8
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroU8
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroI8>
impl StdWrapper<&NonZeroI8>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroI8
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroI8
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroU16>
impl StdWrapper<&NonZeroU16>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroU16
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroU16
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroI16>
impl StdWrapper<&NonZeroI16>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroI16
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroI16
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroU32>
impl StdWrapper<&NonZeroU32>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroU32
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroU32
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroI32>
impl StdWrapper<&NonZeroI32>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroI32
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroI32
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroU64>
impl StdWrapper<&NonZeroU64>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroU64
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroU64
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroI64>
impl StdWrapper<&NonZeroI64>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroI64
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroI64
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroU128>
impl StdWrapper<&NonZeroU128>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroU128
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroU128
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroI128>
impl StdWrapper<&NonZeroI128>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroI128
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroI128
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroUsize>
impl StdWrapper<&NonZeroUsize>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroUsize
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroUsize
to a PanicVal
.
sourceimpl StdWrapper<&NonZeroIsize>
impl StdWrapper<&NonZeroIsize>
sourcepub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonZeroIsize
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>
Converts this NonZeroIsize
to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s Option<NonZeroU8>>
impl<'s> StdWrapper<&'s Option<NonZeroU8>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroI8>>
impl<'s> StdWrapper<&'s Option<NonZeroI8>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroU16>>
impl<'s> StdWrapper<&'s Option<NonZeroU16>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroI16>>
impl<'s> StdWrapper<&'s Option<NonZeroI16>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroU32>>
impl<'s> StdWrapper<&'s Option<NonZeroU32>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroI32>>
impl<'s> StdWrapper<&'s Option<NonZeroI32>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroU64>>
impl<'s> StdWrapper<&'s Option<NonZeroU64>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroI64>>
impl<'s> StdWrapper<&'s Option<NonZeroI64>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroU128>>
impl<'s> StdWrapper<&'s Option<NonZeroU128>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroI128>>
impl<'s> StdWrapper<&'s Option<NonZeroI128>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroUsize>>
impl<'s> StdWrapper<&'s Option<NonZeroUsize>>
sourceimpl<'s> StdWrapper<&'s Option<NonZeroIsize>>
impl<'s> StdWrapper<&'s Option<NonZeroIsize>>
sourceimpl<T: ?Sized> StdWrapper<&*const T>
impl<T: ?Sized> StdWrapper<&*const T>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this *const T
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this *const T
to a PanicVal
.
sourceimpl<T: ?Sized> StdWrapper<&*mut T>
impl<T: ?Sized> StdWrapper<&*mut T>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this *mut T
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this *mut T
to a PanicVal
.
sourceimpl<T: ?Sized> StdWrapper<&NonNull<T>>
impl<T: ?Sized> StdWrapper<&NonNull<T>>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this NonNull<T>
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this NonNull<T>
to a PanicVal
.
sourceimpl<'s, T> StdWrapper<&'s Option<NonNull<T>>>
impl<'s, T> StdWrapper<&'s Option<NonNull<T>>>
sourceimpl<T: ?Sized> StdWrapper<&PhantomData<T>>
impl<T: ?Sized> StdWrapper<&PhantomData<T>>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this PhantomData<T>
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this PhantomData<T>
to a PanicVal
.
sourceimpl StdWrapper<&PhantomPinned>
impl StdWrapper<&PhantomPinned>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this PhantomPinned
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this PhantomPinned
to a PanicVal
.
sourceimpl StdWrapper<&()>
impl StdWrapper<&()>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this ()
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this ()
to a PanicVal
.
sourceimpl<'s> StdWrapper<&'s Option<Ordering>>
impl<'s> StdWrapper<&'s Option<Ordering>>
sourceimpl StdWrapper<&Ordering>
impl StdWrapper<&Ordering>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this std::cmp::Ordering
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this std::cmp::Ordering
to a PanicVal
.
sourceimpl StdWrapper<&Ordering>
impl StdWrapper<&Ordering>
sourcepub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]
Converts this std::sync::atomic::Ordering
to a single-element PanicVal
array.
sourcepub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>
Converts this std::sync::atomic::Ordering
to a PanicVal
.
sourceimpl StdWrapper<&Range<usize>>
impl StdWrapper<&Range<usize>>
sourceimpl StdWrapper<&RangeFrom<usize>>
impl StdWrapper<&RangeFrom<usize>>
sourceimpl StdWrapper<&RangeTo<usize>>
impl StdWrapper<&RangeTo<usize>>
sourceimpl StdWrapper<&RangeToInclusive<usize>>
impl StdWrapper<&RangeToInclusive<usize>>
sourceimpl StdWrapper<&RangeInclusive<usize>>
impl StdWrapper<&RangeInclusive<usize>>
sourceimpl StdWrapper<&RangeFull>
impl StdWrapper<&RangeFull>
Trait Implementations
sourceimpl<T: Clone> Clone for StdWrapper<T>
impl<T: Clone> Clone for StdWrapper<T>
sourcefn clone(&self) -> StdWrapper<T>
fn clone(&self) -> StdWrapper<T>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<T> PanicFmt for StdWrapper<T> where
T: PanicFmt,
impl<T> PanicFmt for StdWrapper<T> where
T: PanicFmt,
type This = StdWrapper<T>
type This = StdWrapper<T>
The type after dereferencing all references. Read more
type Kind = IsCustomType
type Kind = IsCustomType
Whether this is a user-defined type or standard library type. Read more
impl<T: Copy> Copy for StdWrapper<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for StdWrapper<T> where
T: RefUnwindSafe,
impl<T> Send for StdWrapper<T> where
T: Send,
impl<T> Sync for StdWrapper<T> where
T: Sync,
impl<T> Unpin for StdWrapper<T> where
T: Unpin,
impl<T> UnwindSafe for StdWrapper<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more