Trait ezio::Write

source ·
pub trait Write: Write {
    // Required method
    fn write(&mut self, s: &str);

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

A trait for objects which can write out data.

Required Methods§

source

fn write(&mut self, s: &str)

Write a string to self.

How the string is written will depend on the implementation.

Panics if the string cannot be written.

Provided Methods§

source

fn write_any(&mut self, o: impl ToString)
where Self: Sized,

Write any data which implements ToString to self.

Panics if the string cannot be written.

Implementors§

source§

impl Write for ezio::file::Writer

source§

impl Write for Stderr

source§

impl Write for Stdout

source§

impl Write for ezio::string::Writer