From d817e80a17341d506cc1b7bfddd7e6bb6ae60487 Mon Sep 17 00:00:00 2001 From: Heinenen <37484430+Heinenen@users.noreply.github.com> Date: Tue, 19 Dec 2023 10:33:29 +0100 Subject: [PATCH] Write individual destination object (#30) --- src/chunk.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/chunk.rs b/src/chunk.rs index 9203123..dcdede9 100644 --- a/src/chunk.rs +++ b/src/chunk.rs @@ -191,6 +191,11 @@ impl Chunk { self.indirect(id).start() } + /// Start writing a destination for use in a name tree. + pub fn destination(&mut self, id: Ref) -> Destination<'_> { + self.indirect(id).start() + } + /// Start writing a named destination dictionary. pub fn destinations(&mut self, id: Ref) -> TypedDict<'_, Destination> { self.indirect(id).dict().typed()