Trait DebugTableRow

Source
pub trait DebugTableRow<const N: usize> {
    // Required method
    fn into_debug_table_row(self) -> [String; N];
}
Expand description

Trait to allow a value to be converted into row of information for a debug table. This trait may be derived using #[derive(DebugTable)] so long as every field of your type implements Debug.

This trait is automatically implemented for arrays and tuples whose elements implement Debug.

Required Methods§

Source

fn into_debug_table_row(self) -> [String; N]

Creates a debug table row from this value’s data to be printed.

Implementations on Foreign Types§

Source§

impl<A: Debug> DebugTableRow<1> for (A,)

Source§

impl<A: Debug, B: Debug> DebugTableRow<2> for (A, B)

Source§

impl<A: Debug, B: Debug, C: Debug> DebugTableRow<3> for (A, B, C)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug> DebugTableRow<4> for (A, B, C, D)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug> DebugTableRow<5> for (A, B, C, D, E)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug> DebugTableRow<6> for (A, B, C, D, E, F)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug> DebugTableRow<7> for (A, B, C, D, E, F, G)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug> DebugTableRow<8> for (A, B, C, D, E, F, G, H)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug> DebugTableRow<9> for (A, B, C, D, E, F, G, H, I)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug> DebugTableRow<10> for (A, B, C, D, E, F, G, H, I, J)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug, K: Debug> DebugTableRow<11> for (A, B, C, D, E, F, G, H, I, J, K)

Source§

impl<A: Debug, B: Debug, C: Debug, D: Debug, E: Debug, F: Debug, G: Debug, H: Debug, I: Debug, J: Debug, K: Debug, L: Debug> DebugTableRow<12> for (A, B, C, D, E, F, G, H, I, J, K, L)

Source§

impl<T: Debug, const N: usize> DebugTableRow<N> for [T; N]

Implementors§