pub struct Resized {
pub image: ImageContent,
pub original_width: u32,
pub original_height: u32,
pub width: u32,
pub height: u32,
pub was_resized: bool,
}Expand description
pi’s ResizedImage: an image fitted to the limits, with its dimensions
before and after.
Fields§
§image: ImageContentThe image to send.
original_width: u32Width as decoded, turned upright.
original_height: u32Height as decoded, turned upright.
width: u32Width as sent.
height: u32Height as sent.
was_resized: boolWhether the image was scaled and encoded again.
Trait Implementations§
impl StructuralPartialEq for Resized
Auto Trait Implementations§
impl Forget for Resized
impl Freeze for Resized
impl RefUnwindSafe for Resized
impl Send for Resized
impl Sync for Resized
impl Unpin for Resized
impl UnsafeUnpin for Resized
impl UnwindSafe for Resized
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