pub struct Serializer { /* private fields */ }Implementations§
Source§impl Serializer
impl Serializer
pub fn new() -> Self
Sourcepub fn with_deterministic(deterministic: bool) -> Self
pub fn with_deterministic(deterministic: bool) -> Self
When enabled, dictionary entries are emitted in sorted key order and the output is byte-for-byte reproducible across runs and platforms.
pub fn serialize( &self, doc: &Document, writer: &mut (impl Write + Seek), ) -> PdfResult<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Serializer
impl RefUnwindSafe for Serializer
impl Send for Serializer
impl Sync for Serializer
impl Unpin for Serializer
impl UnsafeUnpin for Serializer
impl UnwindSafe for Serializer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more