Dimensions

Trait Dimensions 

Source
pub trait Dimensions {
    // Required methods
    fn as_strings(&self) -> Vec<String>;
    fn len(&self) -> usize;
}
Expand description

Trait to extract the display values for rendering.

Typically, consumers need not implement this trait (as long as they use tuple data types, ex: (T, U, V)).

Required Methods§

Source

fn as_strings(&self) -> Vec<String>

Get the string format values from this vector/data.

Source

fn len(&self) -> usize

Get the length of this vector/data.

Implementations on Foreign Types§

Source§

impl<T> Dimensions for (T,)
where T: Display,

Source§

fn as_strings(&self) -> Vec<String>

Source§

fn len(&self) -> usize

Source§

impl<T, U> Dimensions for (T, U)
where T: Display, U: Display,

Source§

fn as_strings(&self) -> Vec<String>

Source§

fn len(&self) -> usize

Source§

impl<T, U, V> Dimensions for (T, U, V)
where T: Display, U: Display, V: Display,

Source§

fn as_strings(&self) -> Vec<String>

Source§

fn len(&self) -> usize

Source§

impl<T, U, V, W> Dimensions for (T, U, V, W)
where T: Display, U: Display, V: Display, W: Display,

Source§

fn as_strings(&self) -> Vec<String>

Source§

fn len(&self) -> usize

Implementors§