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§

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]

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

Converts the array to a PanicVal.

source§

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

source

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

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the slice to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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]

Available on crate feature non_basic only.

Converts the array to a single-element PanicVal array.

source

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

Available on crate feature non_basic only.

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 StdWrapper<&Utf8Error>

source

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

Available on crate feature rust_1_64 only.

Formats a Utf8Error (supports both Debug and Display formatting).

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<&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 copy 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,

§

type This = StdWrapper<T>

The type after dereferencing all references. Read more
§

type Kind = IsCustomType

Whether this is a user-defined type or standard library type. Read more
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§

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> 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 Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

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

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

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

source§

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

Mutably borrows from an owned value. 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 Twhere W: MakeTypeWitness<Arg = T>, T: ?Sized,

source§

const WITNESS: W = W::MAKE

A constant of the type witness
source§

impl<T, U> Into<U> for Twhere 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 Twhere U: Into<T>,

§

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 Twhere U: TryFrom<T>,

§

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.