pub struct Size {
pub width: u32,
pub height: u32,
}Expand description
A frame resolution in pixels.
Names the pair that decode::Config::resize
and decode::Frame::resize both take, so
width and height can’t be swapped at a call site.
Fields§
§width: u32Width in pixels.
height: u32Height in pixels.
Implementations§
Trait Implementations§
impl Copy for Size
impl Eq for Size
impl StructuralPartialEq for Size
Auto Trait Implementations§
impl Freeze for Size
impl RefUnwindSafe for Size
impl Send for Size
impl Sync for Size
impl Unpin for Size
impl UnsafeUnpin for Size
impl UnwindSafe for Size
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