pub struct ImageSize {
pub width: usize,
pub height: usize,
}
Expand description
Holds the size information of an image.
Fields§
§width: usize
Width of an image in pixels.
height: usize
Height of an image in pixels.
Trait Implementations§
source§impl Ord for ImageSize
impl Ord for ImageSize
source§impl PartialOrd for ImageSize
impl PartialOrd for ImageSize
impl Copy for ImageSize
impl Eq for ImageSize
impl StructuralPartialEq for ImageSize
Auto Trait Implementations§
impl Freeze for ImageSize
impl RefUnwindSafe for ImageSize
impl Send for ImageSize
impl Sync for ImageSize
impl Unpin for ImageSize
impl UnwindSafe for ImageSize
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)