#[non_exhaustive]pub enum DeclaredGeometry {
Pixels {
width: u32,
height: u32,
},
Tiles {
count: u64,
},
Rows {
rows: u32,
},
}Expand description
The geometry a refused codestream declared, as named in
ImageCodecError::DeclaredGeometryExceedsData.
§Examples
use pdfcer_image_codec::DeclaredGeometry;
let g = DeclaredGeometry::Tiles { count: 65_536 };
assert_eq!(g.to_string(), "65536 tiles");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.
Pixels
A frame of width x height pixels (DCT).
Tiles
A tile grid of count tiles (JPX).
Rows
rows scan lines (CCITT).
Trait Implementations§
Source§impl Clone for DeclaredGeometry
impl Clone for DeclaredGeometry
impl Copy for DeclaredGeometry
Source§impl Debug for DeclaredGeometry
impl Debug for DeclaredGeometry
Source§impl Display for DeclaredGeometry
impl Display for DeclaredGeometry
impl Eq for DeclaredGeometry
Source§impl Hash for DeclaredGeometry
impl Hash for DeclaredGeometry
Source§impl PartialEq for DeclaredGeometry
impl PartialEq for DeclaredGeometry
impl StructuralPartialEq for DeclaredGeometry
Auto Trait Implementations§
impl Forget for DeclaredGeometry
impl Freeze for DeclaredGeometry
impl Move for DeclaredGeometry
impl RefUnwindSafe for DeclaredGeometry
impl Send for DeclaredGeometry
impl Sync for DeclaredGeometry
impl Unpin for DeclaredGeometry
impl UnsafeUnpin for DeclaredGeometry
impl UnwindSafe for DeclaredGeometry
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