pub struct Element<'a, 'n: 'a> { /* private fields */ }
Expand description
A XMP property.
Created by XmpWriter::element
, Array::element
,
Array::element_with_attrs
, Struct::element
,
Struct::element_with_attrs
.
Implementations§
source§impl<'a, 'n: 'a> Element<'a, 'n>
impl<'a, 'n: 'a> Element<'a, 'n>
sourcepub fn array(self, kind: RdfCollectionType) -> Array<'a, 'n>
pub fn array(self, kind: RdfCollectionType) -> Array<'a, 'n>
Start writing an array as the property value.
sourcepub fn language_alternative<'b>(
self,
items: impl IntoIterator<Item = (Option<LangId<'b>>, &'b str)>,
)
pub fn language_alternative<'b>( self, items: impl IntoIterator<Item = (Option<LangId<'b>>, &'b str)>, )
Set a language alternative of primitive values as the property value.
sourcepub fn unordered_array(self, items: impl IntoIterator<Item = impl XmpType>)
pub fn unordered_array(self, items: impl IntoIterator<Item = impl XmpType>)
Start writing an unordered array (rdf:Bag
) as the property value.
sourcepub fn ordered_array(self, items: impl IntoIterator<Item = impl XmpType>)
pub fn ordered_array(self, items: impl IntoIterator<Item = impl XmpType>)
Start writing an ordered array (rdf:Seq
) as the property value.
sourcepub fn alternative_array(self, items: impl IntoIterator<Item = impl XmpType>)
pub fn alternative_array(self, items: impl IntoIterator<Item = impl XmpType>)
Start writing an alternative array (rdf:Alt
) as the property value.
Auto Trait Implementations§
impl<'a, 'n> Freeze for Element<'a, 'n>
impl<'a, 'n> RefUnwindSafe for Element<'a, 'n>
impl<'a, 'n> Send for Element<'a, 'n>
impl<'a, 'n> Sync for Element<'a, 'n>
impl<'a, 'n> Unpin for Element<'a, 'n>
impl<'a, 'n> !UnwindSafe for Element<'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