#[non_exhaustive]pub enum Transform {
UpScale {
x: u32,
y: u32,
},
Rotate90Cw,
Rotate90Ccw,
Rotate180,
FlipHorizontal,
FlipVertical,
FlipBoth,
}Expand description
Transformations that can be applied when blitting.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
UpScale
Scales the destination. Only upscaling is supported.
Rotate90Cw
Rotates the destination 90 degrees clockwise.
Rotate90Ccw
Rotates the destination 90 degrees counter-clockwise.
Rotate180
Rotates the destination 180 degrees.
FlipHorizontal
Flips the destination horizontally.
FlipVertical
Flips the destination vertically.
FlipBoth
/// Flips the destination horizontally and vertically.
Trait Implementations§
impl Copy for Transform
impl Eq for Transform
impl StructuralPartialEq for Transform
Auto Trait Implementations§
impl Freeze for Transform
impl RefUnwindSafe for Transform
impl Send for Transform
impl Sync for Transform
impl Unpin for Transform
impl UnwindSafe for Transform
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