#[non_exhaustive]pub struct ClapBox {
pub width_n: u32,
pub width_d: u32,
pub height_n: u32,
pub height_d: u32,
pub horiz_off_n: i32,
pub horiz_off_d: u32,
pub vert_off_n: i32,
pub vert_off_d: u32,
}Expand description
Clean Aperture box (clap).
Defines a crop rectangle as centered rational values. 32 bytes payload: 4 pairs of (numerator u32, denominator u32), except offsets which are signed numerators.
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_n: u32§width_d: u32§height_n: u32§height_d: u32§horiz_off_n: i32§horiz_off_d: u32§vert_off_n: i32§vert_off_d: u32Implementations§
Trait Implementations§
impl Copy for ClapBox
impl StructuralPartialEq for ClapBox
Auto Trait Implementations§
impl Freeze for ClapBox
impl RefUnwindSafe for ClapBox
impl Send for ClapBox
impl Sync for ClapBox
impl Unpin for ClapBox
impl UnsafeUnpin for ClapBox
impl UnwindSafe for ClapBox
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