DisplayTableRow

Trait DisplayTableRow 

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

Trait to allow a value to be converted into a row of information for a table.

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

Required Methods§

Source

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

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

Implementations on Foreign Types§

Source§

impl<A: Display> DisplayTableRow<1> for (A,)

Source§

impl<A: Display, B: Display> DisplayTableRow<2> for (A, B)

Source§

impl<A: Display, B: Display, C: Display> DisplayTableRow<3> for (A, B, C)

Source§

impl<A: Display, B: Display, C: Display, D: Display> DisplayTableRow<4> for (A, B, C, D)

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display> DisplayTableRow<5> for (A, B, C, D, E)

Source§

impl<A: Display, B: Display, C: Display, D: Display, E: Display, F: Display> DisplayTableRow<6> for (A, B, C, D, E, F)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: Display, const N: usize> DisplayTableRow<N> for [T; N]

Implementors§