pub trait Write: Write {
    fn write(&mut self, s: &str);

    fn write_any(&mut self, o: impl ToString)
    where
        Self: Sized
, { ... } }
Expand description

A trait for objects which can write out data.

Required methods

Write a string to self.

How the string is written will depend on the implementation.

Panics if the string cannot be written.

Provided methods

Write any data which implements ToString to self.

Panics if the string cannot be written.

Implementors