pub struct PropertyList<'a> { /* private fields */ }
Expand description
Writer for property list dictionary. Can be used as a generic dictionary. PDF 1.3+.
Implementations§
source§impl<'a> PropertyList<'a>
impl<'a> PropertyList<'a>
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§
source§impl<'a> Deref for PropertyList<'a>
impl<'a> Deref for PropertyList<'a>
source§impl<'a> DerefMut for PropertyList<'a>
impl<'a> DerefMut for PropertyList<'a>
source§impl<'a, 'any> Rewrite<'a> for PropertyList<'any>
impl<'a, 'any> Rewrite<'a> for PropertyList<'any>
source§type Output = PropertyList<'a>
type Output = PropertyList<'a>
The writer with the rewritten lifetime.
Auto Trait Implementations§
impl<'a> Freeze for PropertyList<'a>
impl<'a> RefUnwindSafe for PropertyList<'a>
impl<'a> Send for PropertyList<'a>
impl<'a> Sync for PropertyList<'a>
impl<'a> Unpin for PropertyList<'a>
impl<'a> !UnwindSafe for PropertyList<'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