[go: up one dir, main page]

Trait svgtypes::WriteBuffer [] [src]

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

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

Provided Methods

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

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

Implementations on Foreign Types

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

[src]

[src]

[src]

impl WriteBuffer for f64
[src]

[src]

[src]

[src]

impl WriteBuffer for (f64, f64)
[src]

[src]

[src]

[src]

Implementors