pub struct JpegOptions {
pub quality: u8,
pub dpi: u16,
}Expand description
Settings of an encoding.
Fields§
§quality: u8Quality from 1 (smallest) to 100 (best); 75 by default, as in Pillow.
dpi: u16The resolution recorded in the JFIF header, in dots per inch.
Trait Implementations§
Source§impl Clone for JpegOptions
impl Clone for JpegOptions
impl Copy for JpegOptions
Source§impl Debug for JpegOptions
impl Debug for JpegOptions
Source§impl Default for JpegOptions
impl Default for JpegOptions
impl Eq for JpegOptions
Source§impl PartialEq for JpegOptions
impl PartialEq for JpegOptions
impl StructuralPartialEq for JpegOptions
Auto Trait Implementations§
impl Forget for JpegOptions
impl Freeze for JpegOptions
impl Move for JpegOptions
impl RefUnwindSafe for JpegOptions
impl Send for JpegOptions
impl Sync for JpegOptions
impl Unpin for JpegOptions
impl UnsafeUnpin for JpegOptions
impl UnwindSafe for JpegOptions
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