[][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>(
        &'a self,
        opt: &'a WriteOptions
    ) -> DisplaySvg<'a, Self>
    where
        Self: Sized
, { ... } }

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>(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self> where
    Self: Sized

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

Loading content...

Implementors

impl WriteBuffer for AttributeValue[src]

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

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

impl WriteBuffer for QName<AttributeId>[src]

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

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

impl WriteBuffer for QName<ElementId>[src]

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

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

impl WriteBuffer for Attribute[src]

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

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

impl WriteBuffer for Document[src]

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

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

Loading content...