pub struct Extent {
pub width: u32,
pub height: u32,
}Expand description
A picture’s own pixel dimensions.
Deliberately not makeover_geometry’s business. Geometry answers how
much space a thing should get, which is a scale question with the same
answer on every screen. This is the intrinsic size of one asset, which is a
fact about that asset and varies per picture.
Fields§
§width: u32Width in the picture’s own pixels.
height: u32Height in the picture’s own pixels.
Implementations§
Trait Implementations§
impl Copy for Extent
impl Eq for Extent
impl StructuralPartialEq for Extent
Auto Trait Implementations§
impl Freeze for Extent
impl RefUnwindSafe for Extent
impl Send for Extent
impl Sync for Extent
impl Unpin for Extent
impl UnsafeUnpin for Extent
impl UnwindSafe for Extent
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