Trait hff_std::StdWriter

source ·
pub trait StdWriter: DataSource {
    // Required method
    fn write(&mut self, writer: &mut dyn Write) -> Result<()>;
}
Expand description

Extends the datasource to be able to write into a std::io::Write.

Required Methods§

source

fn write(&mut self, writer: &mut dyn Write) -> Result<()>

Write the data to the given stream.

Trait Implementations§

source§

impl<'a> TryInto<&'a mut dyn StdWriter> for &'a mut Box<dyn DataSource>

§

type Error = Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<&'a mut dyn StdWriter>

Performs the conversion.

Implementors§