Trait svgdom::ValueWriteBuffer [−][src]
pub trait ValueWriteBuffer { 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
.
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.
Implementations on Foreign Types
impl<T> WriteBuffer for Vec<T> where
T: WriteBuffer,
[src]
impl<T> WriteBuffer for Vec<T> where
T: WriteBuffer,
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
[src]
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
impl WriteBuffer for f64
[src]
impl WriteBuffer for f64
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
[src]
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
impl WriteBuffer for (f64, f64)
[src]
impl WriteBuffer for (f64, f64)
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
[src]
fn write_buf_opt(&self, opt: &WriteOptions, buf: &mut Vec<u8>)
fn write_buf(&self, buf: &mut Vec<u8>)
[src]
fn write_buf(&self, buf: &mut Vec<u8>)
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>
[src]
fn with_write_opt(&'a self, opt: &'a WriteOptions) -> DisplaySvg<'a, Self>