pub trait CoverageWriter {
    // Required method
    fn write(&mut self, data: &[u8]) -> Result<(), CoverageWriteError>;
}
Expand description

Sink into which coverage data can be written.

A default implementation for Vec<u8> is provided,

Required Methods§

source

fn write(&mut self, data: &[u8]) -> Result<(), CoverageWriteError>

Writes the given bytes to the sink.

This method should return an error if all bytes could not be written to the sink.

Implementations on Foreign Types§

source§

impl CoverageWriter for Vec<u8>

source§

fn write(&mut self, data: &[u8]) -> Result<(), CoverageWriteError>

Implementors§