pub trait Printing<T> where
Self: Sized, {
fn to_str(self) -> String;
fn to_plainstr(self) -> String;
fn rd(self) -> String { ... }
fn gr(self) -> String { ... }
fn bl(self) -> String { ... }
fn yl(self) -> String { ... }
fn mg(self) -> String { ... }
fn cy(self) -> String { ... }
fn wvec(self, f: &mut File) -> Result<(), Error> { ... }
fn pvec(self) { ... }
}
Expand description
Trait to serialize slices of generic items &[T] (vectors)
and slices of Vecs of generic items &Vec
Required Methods
Method to serialize generic items, slices, and slices of Vecs.
Adds square brackets around Vecs (prettier lists).
Implementation code is in printing.rs
.
fn to_plainstr(self) -> String
fn to_plainstr(self) -> String
Method to serialize generic items, slices, and slices of Vecs.
Implementation code is in printing.rs
.
Provided Methods
Method to write vector(s) to file f (without brackets). Passes up io errors