pub struct StructChildren<'a> { /* private fields */ }
Expand description
Writer for a structure element children array. PDF 1.3+
This struct is created by StructElement::children
.
Implementations§
source§impl<'a> StructChildren<'a>
impl<'a> StructChildren<'a>
sourcepub fn struct_element(&mut self, id: Ref) -> &mut Self
pub fn struct_element(&mut self, id: Ref) -> &mut Self
Write a structure element child as an indirect object.
sourcepub fn marked_content_id(&mut self, id: i32) -> &mut Self
pub fn marked_content_id(&mut self, id: i32) -> &mut Self
Write an integer marked content identifier.
sourcepub fn marked_content_ref(&mut self) -> MarkedRef<'_>
pub fn marked_content_ref(&mut self) -> MarkedRef<'_>
Start writing a marked content reference dictionary.
sourcepub fn object_ref(&mut self) -> ObjectRef<'_>
pub fn object_ref(&mut self) -> ObjectRef<'_>
Start writing an object reference dictionary.
Methods from Deref<Target = Array<'a>>§
sourcepub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
pub fn item<T: Primitive>(&mut self, value: T) -> &mut Self
Write an item with a primitive value.
This is a shorthand for array.push().primitive(value)
.
sourcepub fn items<T: Primitive>(
&mut self,
values: impl IntoIterator<Item = T>,
) -> &mut Self
pub fn items<T: Primitive>( &mut self, values: impl IntoIterator<Item = T>, ) -> &mut Self
Write a sequence of items with primitive values.
Trait Implementations§
source§impl<'a> Deref for StructChildren<'a>
impl<'a> Deref for StructChildren<'a>
source§impl<'a> DerefMut for StructChildren<'a>
impl<'a> DerefMut for StructChildren<'a>
source§impl<'a, 'any> Rewrite<'a> for StructChildren<'any>
impl<'a, 'any> Rewrite<'a> for StructChildren<'any>
source§type Output = StructChildren<'a>
type Output = StructChildren<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for StructChildren<'a>
impl<'a> RefUnwindSafe for StructChildren<'a>
impl<'a> Send for StructChildren<'a>
impl<'a> Sync for StructChildren<'a>
impl<'a> Unpin for StructChildren<'a>
impl<'a> !UnwindSafe for StructChildren<'a>
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