pub struct PageLabel<'a> { /* private fields */ }
Expand description
Writer for a page label dictionary.
Implementations§
source§impl<'a> PageLabel<'a>
impl<'a> PageLabel<'a>
sourcepub fn style(&mut self, style: NumberingStyle) -> &mut Self
pub fn style(&mut self, style: NumberingStyle) -> &mut Self
Write the /S
attribute to set the page label’s numbering style.
If this attribute is omitted, only the prefix will be used, there will be no page number.
Methods from Deref<Target = Dict<'a>>§
sourcepub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
pub fn insert(&mut self, key: Name<'_>) -> Obj<'_>
Start writing a pair with an arbitrary value.
sourcepub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
pub fn pair<T: Primitive>(&mut self, key: Name<'_>, value: T) -> &mut Self
Write a pair with a primitive value.
This is a shorthand for dict.insert(key).primitive(value)
.
sourcepub fn pairs<'n, T: Primitive>(
&mut self,
pairs: impl IntoIterator<Item = (Name<'n>, T)>,
) -> &mut Self
pub fn pairs<'n, T: Primitive>( &mut self, pairs: impl IntoIterator<Item = (Name<'n>, T)>, ) -> &mut Self
Write a sequence of pairs with primitive values.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for PageLabel<'a>
impl<'a> RefUnwindSafe for PageLabel<'a>
impl<'a> Send for PageLabel<'a>
impl<'a> Sync for PageLabel<'a>
impl<'a> Unpin for PageLabel<'a>
impl<'a> !UnwindSafe for PageLabel<'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