pub struct ThumbnailWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
A self-contained thumbnail image.
Created by ThumbnailsWriter::add_thumbnail
.
Implementations§
source§impl<'a, 'n: 'a> ThumbnailWriter<'a, 'n>
impl<'a, 'n: 'a> ThumbnailWriter<'a, 'n>
sourcepub fn format(&mut self, format: &str) -> &mut Self
pub fn format(&mut self, format: &str) -> &mut Self
Write the xmpGImg:format
property with a custom format of the
thumbnail image. Must be “JPEG” for now.
sourcepub fn format_jpeg(&mut self) -> &mut Self
pub fn format_jpeg(&mut self) -> &mut Self
Write the xmpGImg:format
property with the value “JPEG”.
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 ThumbnailWriter<'a, 'n>
impl<'a, 'n> Deref for ThumbnailWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for ThumbnailWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for ThumbnailWriter<'a, 'n>
impl<'a, 'n> Send for ThumbnailWriter<'a, 'n>
impl<'a, 'n> Sync for ThumbnailWriter<'a, 'n>
impl<'a, 'n> Unpin for ThumbnailWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for ThumbnailWriter<'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