pdf_writer

Trait Primitive

source
pub trait Primitive {
    // Required method
    fn write(self, buf: &mut Vec<u8>);
}
Expand description

A primitive PDF object.

Required Methods§

source

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

Write the object into a buffer.

Implementations on Foreign Types§

source§

impl Primitive for bool

source§

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

source§

impl Primitive for f32

source§

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

source§

impl Primitive for i32

source§

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

source§

impl<T> Primitive for &T
where T: Copy + Primitive,

source§

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

Implementors§