pub struct SourcePixels {
pub width: u32,
pub height: u32,
}Expand description
The dimensions as stored in the file, before orientation.
“Source” rather than “size” because after a quarter turn these are not
the dimensions the picture presents — see Measured::display_size,
and the orientation module’s note on why that half is easy to miss.
Fields§
§width: u32§height: u32Implementations§
Trait Implementations§
Source§impl Clone for SourcePixels
impl Clone for SourcePixels
impl Copy for SourcePixels
Source§impl Debug for SourcePixels
impl Debug for SourcePixels
impl Eq for SourcePixels
Source§impl PartialEq for SourcePixels
impl PartialEq for SourcePixels
impl StructuralPartialEq for SourcePixels
Auto Trait Implementations§
impl Freeze for SourcePixels
impl RefUnwindSafe for SourcePixels
impl Send for SourcePixels
impl Sync for SourcePixels
impl Unpin for SourcePixels
impl UnsafeUnpin for SourcePixels
impl UnwindSafe for SourcePixels
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