/// Return the slice of bytes written during the execution of `f`.
Return the slice of bytes written during the execution of `f`.
Return the slice of bytes written during the execution of ` f ` .
fn slice<F>(f: F) -> Vec<u8>
where
    F: FnOnce(&mut PdfWriter),
{
    let mut w = PdfWriter::new();
    let start = w.len();
    f(&mut w);
    let end = w.len();
    let buf = w.finish();
    buf[start .. end].to_vec()
}
fn slice < F > ( f : F ) -> Vec < u8 > where F : FnOnce ( & mut PdfWriter ) , { let mut w = PdfWriter :: new ( ) ; let start = w . len ( ) ; f ( & mut w ) ; let end = w . len ( ) ; let buf = w . finish ( ) ; buf [ start .. end ] . to_vec ( ) }
Return the slice of bytes written during the execution of `f`.
Return the slice of bytes written during the execution of ` f ` .
f
F