pub struct DimensionsWriter<'a, 'n: 'a> { /* private fields */ }
Expand description
Writer for a dimensions struct.
Created by XmpWriter::max_page_size
.
Implementations§
source§impl<'a, 'n> DimensionsWriter<'a, 'n>
impl<'a, 'n> DimensionsWriter<'a, 'n>
sourcepub fn width(&mut self, width: f64) -> &mut Self
pub fn width(&mut self, width: f64) -> &mut Self
Write the stDim:w
property.
The width of the resource.
sourcepub fn height(&mut self, height: f64) -> &mut Self
pub fn height(&mut self, height: f64) -> &mut Self
Write the stDim:h
property.
The height of the resource.
sourcepub fn unit(&mut self, unit: DimensionUnit<'_>) -> &mut Self
pub fn unit(&mut self, unit: DimensionUnit<'_>) -> &mut Self
Write the stDim:unit
property.
The unit of the width and height properties.
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 DimensionsWriter<'a, 'n>
impl<'a, 'n> Deref for DimensionsWriter<'a, 'n>
Auto Trait Implementations§
impl<'a, 'n> Freeze for DimensionsWriter<'a, 'n>
impl<'a, 'n> RefUnwindSafe for DimensionsWriter<'a, 'n>
impl<'a, 'n> Send for DimensionsWriter<'a, 'n>
impl<'a, 'n> Sync for DimensionsWriter<'a, 'n>
impl<'a, 'n> Unpin for DimensionsWriter<'a, 'n>
impl<'a, 'n> !UnwindSafe for DimensionsWriter<'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