#[repr(C)]pub struct ImageSize {
pub width: f32,
pub height: f32,
}Expand description
The size an image is shown at: a fixed width or height in points, or
ImageSize::FIT for the image’s own. Fixing only one keeps the image’s shape.
repr(C) because compiled apps store it as is.
Fields§
§width: f32§height: f32Implementations§
Source§impl ImageSize
impl ImageSize
Trait Implementations§
impl Copy 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 UnsafeUnpin 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