pub struct Fields<'a> { /* private fields */ }
Expand description
Writer for a fields array.
This struct is created by Action::fields
.
Implementations§
source§impl<'a> Fields<'a>
impl<'a> Fields<'a>
sourcepub fn ids(&mut self, ids: impl IntoIterator<Item = Ref>) -> &mut Self
pub fn ids(&mut self, ids: impl IntoIterator<Item = Ref>) -> &mut Self
The indirect references to the fields.
sourcepub fn name(&mut self, name: TextStr<'_>) -> &mut Self
pub fn name(&mut self, name: TextStr<'_>) -> &mut Self
The fully qualified name of the field. PDF 1.3+.
sourcepub fn names<'b>(
&mut self,
names: impl IntoIterator<Item = TextStr<'b>>,
) -> &mut Self
pub fn names<'b>( &mut self, names: impl IntoIterator<Item = TextStr<'b>>, ) -> &mut Self
The fully qualified names of the fields. PDF 1.3+.
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§
Auto Trait Implementations§
impl<'a> Freeze for Fields<'a>
impl<'a> RefUnwindSafe for Fields<'a>
impl<'a> Send for Fields<'a>
impl<'a> Sync for Fields<'a>
impl<'a> Unpin for Fields<'a>
impl<'a> !UnwindSafe for Fields<'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