#[non_exhaustive]pub struct Dimensions {
pub width: u16,
pub height: u16,
pub horizontal_scale: u8,
pub vertical_scale: u8,
}Expand description
The size fields of a keyframe header.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.width: u16Coded width in pixels.
height: u16Coded height in pixels.
horizontal_scale: u8Upscaling the sender asks for on display: 0 none, 1 5/4, 2 5/3, 3 2. Decoding ignores it (RFC 6386 Section 9.1).
vertical_scale: u8As horizontal_scale, vertically.
Trait Implementations§
Source§impl Clone for Dimensions
impl Clone for Dimensions
impl Copy for Dimensions
Source§impl Debug for Dimensions
impl Debug for Dimensions
impl Eq for Dimensions
Source§impl PartialEq for Dimensions
impl PartialEq for Dimensions
impl StructuralPartialEq for Dimensions
Auto Trait Implementations§
impl Forget for Dimensions
impl Freeze for Dimensions
impl RefUnwindSafe for Dimensions
impl Send for Dimensions
impl Sync for Dimensions
impl Unpin for Dimensions
impl UnsafeUnpin for Dimensions
impl UnwindSafe for Dimensions
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