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§