pub struct TransformFunction {
pub kind: TransformFunctionKind,
pub values: [f32; 6],
}Expand description
One CSS transform function: its kind and up to six values, the unused ones zero.
Translate is x and y in dp, Rotate degrees (not folded into one turn, so 0 to 720
is two turns), Scale x and y, Skew the x and y angles in degrees, and Matrix the
six values of CSS matrix().
Fields§
§kind: TransformFunctionKind§values: [f32; 6]Implementations§
Trait Implementations§
Source§impl Clone for TransformFunction
impl Clone for TransformFunction
impl Copy for TransformFunction
Source§impl Debug for TransformFunction
impl Debug for TransformFunction
Source§impl PartialEq for TransformFunction
impl PartialEq for TransformFunction
impl StructuralPartialEq for TransformFunction
Auto Trait Implementations§
impl Freeze for TransformFunction
impl RefUnwindSafe for TransformFunction
impl Send for TransformFunction
impl Sync for TransformFunction
impl Unpin for TransformFunction
impl UnsafeUnpin for TransformFunction
impl UnwindSafe for TransformFunction
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