Enum jpeg_encoder::Density
source · pub enum Density {
None,
Inch {
x: u16,
y: u16,
},
Centimeter {
x: u16,
y: u16,
},
}
Expand description
Density settings
Variants§
None
No pixel density is set, which means “1 pixel per pixel”
Inch
Horizontal and vertical dots per inch (dpi)
Centimeter
Horizontal and vertical dots per centimeters
Trait Implementations§
source§impl PartialEq for Density
impl PartialEq for Density
impl Copy for Density
impl Eq for Density
impl StructuralEq for Density
impl StructuralPartialEq for Density
Auto Trait Implementations§
impl RefUnwindSafe for Density
impl Send for Density
impl Sync for Density
impl Unpin for Density
impl UnwindSafe for Density
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