pub struct NumberTree<'a, T> { /* private fields */ }
Expand description
Writer for a number tree node.
Number trees associate a many integers with PDF objects. They are search trees in ascending order. Root nodes may directly contain all leafs, however, this might degrade performance for very large numbers of integer-object pairs.
For each node, either the /Kids
or /Nums
attribute must be set, but
never both.
Implementations§
source§impl<T> NumberTree<'_, T>
impl<T> NumberTree<'_, T>
sourcepub fn kids(&mut self) -> TypedArray<'_, Ref>
pub fn kids(&mut self) -> TypedArray<'_, Ref>
Start writing the /Kids
attribute with the children of this node.
sourcepub fn nums(&mut self) -> NumberTreeEntries<'_, T>
pub fn nums(&mut self) -> NumberTreeEntries<'_, T>
Start writing the /Nums
attribute to set the immediate
number-to-object mappings of this node.
Trait Implementations§
source§impl<'a, 'any, T> Rewrite<'a> for NumberTree<'any, T>
impl<'a, 'any, T> Rewrite<'a> for NumberTree<'any, T>
source§type Output = NumberTree<'a, T>
type Output = NumberTree<'a, T>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a, T> Freeze for NumberTree<'a, T>
impl<'a, T> RefUnwindSafe for NumberTree<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for NumberTree<'a, T>where
T: Send,
impl<'a, T> Sync for NumberTree<'a, T>where
T: Sync,
impl<'a, T> Unpin for NumberTree<'a, T>where
T: Unpin,
impl<'a, T> !UnwindSafe for NumberTree<'a, T>
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