pub trait Printing<T> {
    fn to_str(self) -> String;

    fn gr(self) -> String { ... }
}
Expand description

Trait to serialize slices of generic items (vectors) and slices of Vecs of generic items (matrices). Turns them all into printable strings.

Required methods

Method to serialize generic items, slices, and slices of Vecs. Can be implemented on any other types.

Provided methods

Method gr() to serialize and make the resulting string bold green when printed. This is the default implementation applicable to all types that trait Printing is implemented for

Implementations on Foreign Types

Implementors