pub struct ColorantsWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
Writer for an array of colorants.
Created by XmpWriter::colorants
.
Implementations§
source§impl<'a, 'n> ColorantsWriter<'a, 'n>
impl<'a, 'n> ColorantsWriter<'a, 'n>
sourcepub fn add_colorant(&mut self) -> ColorantWriter<'_, 'n>
pub fn add_colorant(&mut self) -> ColorantWriter<'_, 'n>
Add a new colorant to the array.
Methods from Deref<Target = Array<'a, 'n>>§
sourcepub fn element_with_attrs(
&mut self,
attrs: impl IntoIterator<Item = (&'a str, &'a str)>,
) -> Element<'_, 'n>
pub fn element_with_attrs( &mut self, attrs: impl IntoIterator<Item = (&'a str, &'a str)>, ) -> Element<'_, 'n>
Start writing an element with attributes in the array.
Trait Implementations§
source§impl<'a, 'n> Deref for ColorantsWriter<'a, 'n>
impl<'a, 'n> Deref for ColorantsWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for ColorantsWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for ColorantsWriter<'a, 'n>
impl<'a, 'n> Send for ColorantsWriter<'a, 'n>
impl<'a, 'n> Sync for ColorantsWriter<'a, 'n>
impl<'a, 'n> Unpin for ColorantsWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for ColorantsWriter<'a, 'n>
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