WriteBuffer

Trait WriteBuffer 

Source
pub trait WriteBuffer {
    // Required method
    fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>);

    // Provided methods
    fn write_buf(&self, buf: &mut Vec<u8>) { ... }
    fn with_write_opt<'a>(
        &'a self,
        opt: &'a WriteOptions,
    ) -> DisplaySvg<'a, Self>
       where Self: Sized { ... }
}
Expand description

A trait for writing data to the buffer.

Required Methods§

Source

fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)

Writes data to the Vec<u8> buffer using specified WriteOptions.

Provided Methods§

Source

fn write_buf(&self, buf: &mut Vec<u8>)

Writes data to the Vec<u8> buffer using default WriteOptions.

Source

fn with_write_opt<'a>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
where Self: Sized,

Returns an object that implements fmt::Display using provided write options.

Implementations on Foreign Types§

Source§

impl WriteBuffer for f64

Source§

fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)

Source§

impl<T: WriteBuffer> WriteBuffer for Vec<T>

Source§

fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)

Implementors§