[][src]Trait svgdom::WriteBuffer

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

    fn write_buf(&self, buf: &mut Vec<u8>) { ... }
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> { ... } }

A trait for writing data to the buffer.

Required methods

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

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

Loading content...

Provided methods

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

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

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

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

Loading content...

Implementations on Foreign Types

impl WriteBuffer for (f64, f64)[src]

impl WriteBuffer for f64[src]

impl<T> WriteBuffer for Vec<T> where
    T: WriteBuffer
[src]

Loading content...

Implementors

impl WriteBuffer for AttributeValue[src]

impl WriteBuffer for Angle[src]

impl WriteBuffer for AspectRatio[src]

impl WriteBuffer for Color[src]

impl WriteBuffer for Length[src]

impl WriteBuffer for Path[src]

impl WriteBuffer for Transform[src]

impl WriteBuffer for ViewBox[src]

Loading content...