#[non_exhaustive]pub enum ExportFormat {
Png,
Jpeg {
quality: u8,
},
Tiff {
multi_page: bool,
},
}Expand description
The file format pages are exported to.
Added in 0.2.0.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Png
PNG, RGBA (the png crate), with the resolution in pHYs.
Jpeg
JPEG at quality 1–100 (jpeg-encoder), RGB on the export’s background, with the
resolution in the JFIF header.
Tiff
TIFF, RGBA, Deflate-compressed (the tiff crate), with the resolution in
XResolution and YResolution. With multi_page, export_pages writes every page
into one file.
Trait Implementations§
Source§impl Clone for ExportFormat
impl Clone for ExportFormat
impl Copy for ExportFormat
Source§impl Debug for ExportFormat
impl Debug for ExportFormat
impl Eq for ExportFormat
Source§impl Hash for ExportFormat
impl Hash for ExportFormat
Source§impl PartialEq for ExportFormat
impl PartialEq for ExportFormat
impl StructuralPartialEq for ExportFormat
Auto Trait Implementations§
impl Forget for ExportFormat
impl Freeze for ExportFormat
impl Move for ExportFormat
impl RefUnwindSafe for ExportFormat
impl Send for ExportFormat
impl Sync for ExportFormat
impl Unpin for ExportFormat
impl UnsafeUnpin for ExportFormat
impl UnwindSafe for ExportFormat
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