#[non_exhaustive]pub struct Resolution {
pub capture: Option<Res>,
pub display: Option<Res>,
}Expand description
The resolutions a JP2 file’s res box gives, in grid points per meter.
The capture resolution (resc) is the one the image was digitized at; the
default display resolution (resd) is the one it should be shown at. A
box that is missing, or that does not hold exactly its ten bytes, leaves
its field None: OpenJPEG does not read res at all, so a malformed one
never fails a decode. When more than one is present, the first counts.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.capture: Option<Res>The capture resolution (resc).
display: Option<Res>The default display resolution (resd).
Trait Implementations§
Source§impl Clone for Resolution
impl Clone for Resolution
impl Copy for Resolution
Source§impl Debug for Resolution
impl Debug for Resolution
Source§impl Default for Resolution
impl Default for Resolution
impl Eq for Resolution
Source§impl PartialEq for Resolution
impl PartialEq for Resolution
impl StructuralPartialEq for Resolution
Auto Trait Implementations§
impl Forget for Resolution
impl Freeze for Resolution
impl Move for Resolution
impl RefUnwindSafe for Resolution
impl Send for Resolution
impl Sync for Resolution
impl Unpin for Resolution
impl UnsafeUnpin 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