pub trait Write: Write { fn write(&mut self, s: &str); fn write_any(&mut self, o: impl ToString) where Self: Sized, { ... } }
A trait for objects which can write out data.
Write a string to self.
How the string is written will depend on the implementation.
Panics if the string cannot be written.
Write any data which implements ToString to self.
ToString