Skip to content

Commit

Permalink
Write individual destination object (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinenen authored Dec 19, 2023
1 parent df2195e commit d817e80
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d817e80

Please sign in to comment.