Struct 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§

Source§

impl StdWrapper<&char>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this char to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this char to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [u8]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [u8; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [u16]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [u16; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [u32]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [u32; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [u64]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [u64; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [u128]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [u128; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [usize]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [usize; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [i8]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [i8; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [i16]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [i16; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [i32]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [i32; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [i64]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [i64; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [i128]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [i128; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [isize]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [isize; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [bool]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [bool; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [char]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [char; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl<'s> StdWrapper<&'s [&'s str]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the slice to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the slice to a PanicVal.

Source§

impl<'s, const LEN: usize> StdWrapper<&'s [&'s str; LEN]>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'s>; 1]

Converts the array to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'s>

Converts the array to a PanicVal.

Source§

impl StdWrapper<&u8>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this u8 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this u8 to a PanicVal.

Source§

impl StdWrapper<&u16>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this u16 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this u16 to a PanicVal.

Source§

impl StdWrapper<&u32>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this u32 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this u32 to a PanicVal.

Source§

impl StdWrapper<&u64>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this u64 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this u64 to a PanicVal.

Source§

impl StdWrapper<&u128>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this u128 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this u128 to a PanicVal.

Source§

impl StdWrapper<&usize>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this usize to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this usize to a PanicVal.

Source§

impl StdWrapper<&i8>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this i8 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this i8 to a PanicVal.

Source§

impl StdWrapper<&i16>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this i16 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this i16 to a PanicVal.

Source§

impl StdWrapper<&i32>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this i32 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this i32 to a PanicVal.

Source§

impl StdWrapper<&i64>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this i64 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this i64 to a PanicVal.

Source§

impl StdWrapper<&i128>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this i128 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this i128 to a PanicVal.

Source§

impl StdWrapper<&isize>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Converts this isize to a single-element PanicVal array.

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Converts this isize to a PanicVal.

Source§

impl<'s> StdWrapper<&'s bool>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 1]

Formats this bool into a single-PanicVal array

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'static>

Formats this bool into a PanicVal

Source§

impl<'a> StdWrapper<&'a str>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'a>; 1]

Formats this &str into a single-PanicVal array

Source

pub const fn to_panicval(self, f: FmtArg) -> PanicVal<'a>

Formats this &str into a PanicVal

Source§

impl<'s, 'a, const N: usize> StdWrapper<&'s [PanicVal<'a>; N]>

Source

pub const fn to_panicvals(self, _: FmtArg) -> &'s [PanicVal<'a>; N]

Source§

impl<'s, 'a> StdWrapper<&'s [PanicVal<'a>]>

Source

pub const fn to_panicvals(self, _: FmtArg) -> &'s [PanicVal<'a>]

Source§

impl<'a, 'b> StdWrapper<&'a &'b [PanicVal<'b>]>

Source

pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]

Coerces a &&[PanicVal<'_>] into a &[PanicVal<'_>]

Source§

impl<'a, 'b, const N: usize> StdWrapper<&'a &'b [PanicVal<'b>; N]>

Source

pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]

Coerces a &&[PanicVal<'_>; N] into a &[PanicVal<'_>]

Source§

impl<'b, const N: usize> StdWrapper<&'b [PanicVal<'b>; N]>

Source

pub const fn deref_panic_vals(self) -> &'b [PanicVal<'b>]

Coerces a &[PanicVal<'_>; N] into a &[PanicVal<'_>]

Source§

impl<'s> StdWrapper<&'s Option<bool>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<bool> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[bool; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[bool; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [bool; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [bool; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [bool]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [bool]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<u8>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<u8> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[u8; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[u8; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [u8; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u8; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [u8]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u8]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<u16>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<u16> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[u16; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[u16; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [u16; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u16; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [u16]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u16]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<u32>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<u32> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[u32; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[u32; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [u32; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u32; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [u32]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u32]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<u64>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<u64> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[u64; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[u64; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [u64; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u64; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [u64]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u64]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<u128>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<u128> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[u128; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[u128; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [u128; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u128; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [u128]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [u128]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<i8>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<i8> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[i8; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[i8; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [i8; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i8; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [i8]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i8]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<i16>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<i16> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[i16; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[i16; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [i16; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i16; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [i16]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i16]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<i32>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<i32> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[i32; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[i32; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [i32; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i32; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [i32]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i32]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<i64>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<i64> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[i64; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[i64; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [i64; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i64; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [i64]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i64]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<i128>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<i128> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[i128; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[i128; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [i128; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i128; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [i128]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [i128]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<isize>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<isize> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[isize; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[isize; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [isize; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [isize; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [isize]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [isize]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<usize>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<usize> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[usize; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[usize; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [usize; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [usize; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [usize]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [usize]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s str>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<&'s str> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<[&'s str; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<[&'s str; N]> to a PanicVal array.

Source§

impl<'s, const N: usize> StdWrapper<&'s Option<&'s [&'s str; N]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [&'s str; N]> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<&'s [&'s str]>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'s>; 5]

Converts this Option<& 's [&'s str]> to a PanicVal array.

Source§

impl StdWrapper<&NonZeroU8>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroU8 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroU8 to a PanicVal.

Source§

impl StdWrapper<&NonZeroI8>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroI8 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroI8 to a PanicVal.

Source§

impl StdWrapper<&NonZeroU16>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroU16 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroU16 to a PanicVal.

Source§

impl StdWrapper<&NonZeroI16>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroI16 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroI16 to a PanicVal.

Source§

impl StdWrapper<&NonZeroU32>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroU32 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroU32 to a PanicVal.

Source§

impl StdWrapper<&NonZeroI32>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroI32 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroI32 to a PanicVal.

Source§

impl StdWrapper<&NonZeroU64>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroU64 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroU64 to a PanicVal.

Source§

impl StdWrapper<&NonZeroI64>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroI64 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroI64 to a PanicVal.

Source§

impl StdWrapper<&NonZeroU128>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroU128 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroU128 to a PanicVal.

Source§

impl StdWrapper<&NonZeroI128>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroI128 to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroI128 to a PanicVal.

Source§

impl StdWrapper<&NonZeroUsize>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroUsize to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroUsize to a PanicVal.

Source§

impl StdWrapper<&NonZeroIsize>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonZeroIsize to a single-element PanicVal array.

Source

pub const fn to_panicval(self, fmtarg: FmtArg) -> PanicVal<'static>

Converts this NonZeroIsize to a PanicVal.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroU8>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroU8> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroI8>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroI8> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroU16>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroU16> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroI16>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroI16> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroU32>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroU32> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroI32>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroI32> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroU64>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroU64> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroI64>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroI64> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroU128>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroU128> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroI128>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroI128> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroUsize>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroUsize> to a PanicVal array.

Source§

impl<'s> StdWrapper<&'s Option<NonZeroIsize>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonZeroIsize> to a PanicVal array.

Source§

impl<T: ?Sized> StdWrapper<&*const T>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this *const T to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this *const T to a PanicVal.

Source§

impl<T: ?Sized> StdWrapper<&*mut T>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this *mut T to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this *mut T to a PanicVal.

Source§

impl<T: ?Sized> StdWrapper<&NonNull<T>>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this NonNull<T> to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this NonNull<T> to a PanicVal.

Source§

impl<'s, T> StdWrapper<&'s Option<NonNull<T>>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<NonNull<T>> to a PanicVal array.

Source§

impl<T: ?Sized> StdWrapper<&PhantomData<T>>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this PhantomData<T> to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this PhantomData<T> to a PanicVal.

Source§

impl StdWrapper<&PhantomPinned>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this PhantomPinned to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this PhantomPinned to a PanicVal.

Source§

impl StdWrapper<&()>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this () to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this () to a PanicVal.

Source§

impl<'s> StdWrapper<&'s Option<Ordering>>

Source

pub const fn to_panicvals(self, fmtarg: FmtArg) -> [PanicVal<'static>; 5]

Converts this Option<core::cmp::Ordering> to a PanicVal array.

Source§

impl StdWrapper<&Ordering>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this std::cmp::Ordering to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this std::cmp::Ordering to a PanicVal.

Source§

impl StdWrapper<&Ordering>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this std::sync::atomic::Ordering to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this std::sync::atomic::Ordering to a PanicVal.

Source§

impl StdWrapper<&Infallible>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this std::convert::Infallible to a single-element PanicVal array.

Source

pub const fn to_panicval(self, _f: FmtArg) -> PanicVal<'static>

Converts this std::convert::Infallible to a PanicVal.

Source§

impl StdWrapper<&Range<usize>>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 3]

Converts this Range < usize > to a single-element PanicVal array.

Source§

impl StdWrapper<&RangeFrom<usize>>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 2]

Converts this RangeFrom < usize > to a single-element PanicVal array.

Source§

impl StdWrapper<&RangeTo<usize>>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 2]

Converts this RangeTo < usize > to a single-element PanicVal array.

Source§

impl StdWrapper<&RangeToInclusive<usize>>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 2]

Converts this RangeToInclusive < usize > to a single-element PanicVal array.

Source§

impl StdWrapper<&RangeInclusive<usize>>

Source

pub const fn to_panicvals(self, f: FmtArg) -> [PanicVal<'static>; 3]

Converts this RangeInclusive < usize > to a single-element PanicVal array.

Source§

impl StdWrapper<&RangeFull>

Source

pub const fn to_panicvals(self, _f: FmtArg) -> [PanicVal<'static>; 1]

Converts this RangeFull to a single-element PanicVal array.

Trait Implementations§

Source§

impl<T: Clone> Clone for StdWrapper<T>

Source§

fn clone(&self) -> StdWrapper<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T> PanicFmt for StdWrapper<T>
where T: PanicFmt,

Source§

const PV_COUNT: usize = T::PV_COUNT

The length of the array returned in Self::to_panicvals (an inherent method that formats the type for panic messages).
Source§

type This = StdWrapper<T>

The type after dereferencing all references. Read more
Source§

type Kind = IsCustomType

Whether this is a user-defined type or standard library type. Read more
Source§

const PROOF: IsPanicFmt<Self, Self::This, Self::Kind> = IsPanicFmt::NEW

A marker type that proves that Self implements PanicFmt. Read more
Source§

impl<T: Copy> Copy for StdWrapper<T>

Auto Trait Implementations§

§

impl<T> Freeze for StdWrapper<T>
where T: Freeze,

§

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§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, W> HasTypeWitness<W> for T
where W: MakeTypeWitness<Arg = T>, T: ?Sized,

Source§

const WITNESS: W = W::MAKE

A constant of the type witness
Source§

impl<T> Identity for T
where T: ?Sized,

Source§

const TYPE_EQ: TypeEq<T, <T as Identity>::Type> = TypeEq::NEW

Proof that Self is the same type as Self::Type, provides methods for casting between Self and Self::Type.
Source§

type Type = T

The same type as Self, used to emulate type equality bounds (T == U) with associated type equality constraints (T: Identity<Type = U>).
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.