[][src]Struct pdf_create::write::Formatter

pub struct Formatter<'a> { /* fields omitted */ }

Formatter for a PDF document

Implementations

impl<'a> Formatter<'a>[src]

pub fn new(w: &'a mut dyn Write) -> Self[src]

Create a new formatter

pub fn pdf_dict(&mut self) -> PdfDict<'a, '_>[src]

Start writing a PDF dict

pub fn pdf_arr(&mut self) -> PdfArr<'a, '_>[src]

Start writing a PDF array

pub fn pdf_stream(&mut self, data: &[u8]) -> Result<()>[src]

Start writing a stream

pub fn obj(&mut self, r#ref: ObjRef, obj: &dyn Serialize) -> Result<()>[src]

Start writing an object

pub fn xref(&mut self) -> Result<usize>[src]

Write a classic xref section

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Formatter<'a>

impl<'a> !Send for Formatter<'a>

impl<'a> !Sync for Formatter<'a>

impl<'a> Unpin for Formatter<'a>

impl<'a> !UnwindSafe for Formatter<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.