pub struct PantryItemWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
Writer for an item in a Pantry array.
Use the Deref
impl to access the underlying Struct
and add properties.
Created by PantryWriter::add_item
.
Implementations§
source§impl<'a, 'n: 'a> PantryItemWriter<'a, 'n>
impl<'a, 'n: 'a> PantryItemWriter<'a, 'n>
sourcepub fn instance_id(&mut self, id: &str) -> &mut Self
pub fn instance_id(&mut self, id: &str) -> &mut Self
Write the xmpMM:instanceID
property. Required.
Methods from Deref<Target = Struct<'a, 'n>>§
sourcepub fn element(
&mut self,
name: &'a str,
namespace: Namespace<'n>,
) -> Element<'_, 'n>
pub fn element( &mut self, name: &'a str, namespace: Namespace<'n>, ) -> Element<'_, 'n>
Start writing a property in the struct.
sourcepub fn element_with_attrs<'b>(
&mut self,
name: &'a str,
namespace: Namespace<'n>,
attrs: impl IntoIterator<Item = (&'b str, &'b str)>,
) -> Element<'_, 'n>
pub fn element_with_attrs<'b>( &mut self, name: &'a str, namespace: Namespace<'n>, attrs: impl IntoIterator<Item = (&'b str, &'b str)>, ) -> Element<'_, 'n>
Start writing a property with attributes in the struct.
Trait Implementations§
source§impl<'a, 'n> Deref for PantryItemWriter<'a, 'n>
impl<'a, 'n> Deref for PantryItemWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for PantryItemWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for PantryItemWriter<'a, 'n>
impl<'a, 'n> Send for PantryItemWriter<'a, 'n>
impl<'a, 'n> Sync for PantryItemWriter<'a, 'n>
impl<'a, 'n> Unpin for PantryItemWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for PantryItemWriter<'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