Skip to content

Commit

Permalink
write individual destination object
Browse files Browse the repository at this point in the history
  • Loading branch information
Heinenen committed Dec 17, 2023
1 parent df2195e commit 85277bd
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 85277bd

Please sign in to comment.