pub enum Transform {
None,
Rotate90,
Rotate180,
Rotate270,
Flip,
FlipRotate90,
FlipRotate180,
FlipRotate270,
}
Expand description
A transformation.
Variants§
None
No transformation.
Rotate90
Rotate 90 degrees counter-clockwise.
Rotate180
Rotate 180 degrees counter-clockwise.
Rotate270
Rotate 270 degrees counter-clockwise.
Flip
Flip around the vertical axis.
FlipRotate90
Flip around the vertical axis, then rotate 90 degrees counter-clockwise.
FlipRotate180
Flip around the vertical axis, then rotate 180 degrees counter-clockwise.
FlipRotate270
Flip around the vertical axis, then rotate 270 degrees counter-clockwise.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Transform
impl<'de> Deserialize<'de> for Transform
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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