pub enum Resolution {
Inch {
horizontal: f32,
vertical: f32,
},
Cm {
horizontal: f32,
vertical: f32,
},
}Expand description
The pixel density of the image, in pixels per inch or pixels per centimeter
Although it would be unusual for horizontal and vertical pixel density to differ, as this would result in a stretched image for most media, they are specified separately.
Variants§
Inch
Pixel density is measured in pixels per inch
Fields
Cm
Pixel density is measured in pixels per centimeter
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
Source§fn clone(&self) -> Resolution
fn clone(&self) -> Resolution
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for Resolution
impl Debug for Resolution
Auto Trait Implementations§
impl Freeze for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnwindSafe for Resolution
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